xref: /llvm-project/llvm/test/CodeGen/WebAssembly/null-streamer.ll (revision 73856247eef35f5336e485dc009842a5b991c421)
1; RUN: llc < %s -O0 -filetype=null -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling
2; RUN: llc < %s -O0 -filetype=asm -asm-verbose=false -wasm-enable-eh -exception-model=wasm -mattr=+exception-handling | FileCheck %s
3
4target triple = "wasm32-unknown-unknown"
5
6declare void @llvm.wasm.throw(i32, ptr)
7declare void @g()
8
9define i32 @test(ptr %p)  {
10  %n = alloca i32
11  call void @llvm.wasm.throw(i32 0, ptr %p)
12  call void @g()
13  ret i32 0
14}
15
16; CHECK-DAG: .globaltype
17; CHECK-DAG: .tagtype
18; CHECK-DAG: .functype
19