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 return 12 end_function 13 14# RUN: llvm-symbolizer -e %t.o 3 4 7 8 | FileCheck %s 15## Byte 1 is the function length and 2 is the locals declaration. 16## Currently no line corresponds to them. 17## TODO: create a loc for .functype? 18 19## Test 2 functions to ensure wasm's function-sections system works. 20# CHECK: wasm-basic.s:6:0 21# CHECK: wasm-basic.s:7:0 22# CHECK: wasm-basic.s:11:0 23# CHECK: wasm-basic.s:12:0 24