1 # RUN: not llvm-mc -triple=wasm32-unknown-unknown %s 2>&1 | FileCheck %s
3 # A Wasm function should always end with a 'end_function' pseudo instruction in
4 # assembly. This causes the parser to properly wrap up function info when there
5 # is no other instructions present.
8 .functype test0 () -> ()
11 # CHECK: [[@LINE+1]]:{{.*}}: error: Unmatched block construct(s) at function end: function
12 .functype test1 () -> ()
16 .functype test2 () -> ()
17 # CHECK: [[@LINE+1]]:{{.*}}: error: Unmatched block construct(s) at function end: function