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
4 target triple = "wasm32-unknown-unknown"
6 declare void @llvm.wasm.throw(i32, ptr)
9 define i32 @test(ptr %p) {
11 call void @llvm.wasm.throw(i32 0, ptr %p)
16 ; CHECK-DAG: .globaltype
18 ; CHECK-DAG: .functype