brintos

brintos / llvm-project-archived public Read only

0
0
Text · 572 B · 42d581f Raw
18 lines · plain
1# RUN: not llvm-mc -triple=wasm32-unknown-unknown %s 2>&1 | FileCheck %s2 3# A Wasm function should always end with a 'end_function' pseudo instruction in4# assembly. This causes the parser to properly wrap up function info when there5# is no other instructions present.6 7test0:8  .functype test0 () -> ()9 10test1:11# CHECK: [[@LINE+1]]:{{.*}}: error: Unmatched block construct(s) at function end: function12  .functype test1 () -> ()13  end_function14 15test2:16  .functype test2 () -> ()17# CHECK: [[@LINE+1]]:{{.*}}: error: Unmatched block construct(s) at function end: function18