xref: /llvm-project-15.0.7/llvm/test/MC/WebAssembly/basic-assembly-errors.s (revision 87aaa56b)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: not llvm-mc -triple=wasm32-unknown-unknown -mattr=+simd128,+nontrapping-fptoint,+exception-handling < %s 2>&1 | FileCheck %s
2
3    .text
4    .section    .text.main,"",@
5    .type       test0,@function
6# CHECK: End of block construct with no start: end_try
7    end_try
8test0:
9    .functype   test0 () -> ()
10# CHECK: Block construct type mismatch, expected: end_function, instead got: end_loop
11    end_loop
12    block
13# CHECK: Block construct type mismatch, expected: end_block, instead got: end_if
14    end_if
15    try
16    loop
17# CHECK: Block construct type mismatch, expected: end_loop, instead got: end_function
18# CHECK: error: Unmatched block construct(s) at function end: loop
19# CHECK: error: Unmatched block construct(s) at function end: try
20# CHECK: error: Unmatched block construct(s) at function end: block
21# CHECK: error: Unmatched block construct(s) at function end: function
22    end_function
23.Lfunc_end0:
24    .size       test0, .Lfunc_end0-test0
25
26

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026