1# REQUIRES: webassembly-registered-target
2# RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj %s -o %t.o -g
3
4foo:
5    .functype foo () -> ()
6    nop
7    end_function
8
9bar:
10    .functype bar (i32) -> (i32)
11    local.get 0
12    return
13    end_function
14
15# RUN: llvm-symbolizer -e %t.o 3 4 7 8 | FileCheck %s
16## Byte 1 is the function length and 2 is the locals declaration.
17## Currently no line corresponds to them.
18## TODO: create a loc for .functype?
19
20## Test 2 functions to ensure wasm's function-sections system works.
21# CHECK: wasm-basic.s:6:0
22# CHECK: wasm-basic.s:7:0
23# CHECK: wasm-basic.s:11:0
24# CHECK: wasm-basic.s:11:0
25