xref: /llvm-project/llvm/test/MC/WebAssembly/type-checker-disabled.s (revision 2f8c067bef34bac2ecc8a9ab74e85fb4a442b614)
1# RUN: llvm-mc -triple=wasm32 -no-type-check %s 2>&1
2
3# Check no errors are produced when type checking is disabled.
4
5correctly_typed:
6  .functype correctly_typed () -> (i32)
7  i32.const 1
8  end_function
9
10incorrectly_typed:
11  .functype incorrectly_typed () -> (i32)
12  nop
13  end_function
14