1# RUN: not llvm-mc -triple=wasm32-unknown-unknown %s 2>&1 | FileCheck %s 2 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. 6 7test0: 8 .functype test0 () -> () 9 10test1: 11# CHECK: [[@LINE+1]]:{{.*}}: error: Unmatched block construct(s) at function end: function 12 .functype test1 () -> () 13 end_function 14 15test2: 16 .functype test2 () -> () 17# CHECK: [[@LINE+1]]:{{.*}}: error: Unmatched block construct(s) at function end: function 18