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