xref: /llvm-project/llvm/test/CodeGen/Generic/2007-05-03-EHTypeInfo.ll (revision 0e8bd5a44a1bd8034706189b49a7a816c59304cd)
1; RUN: llc < %s
2
3	%struct.exception = type { i8, i8, i32, ptr, ptr, i32, ptr }
4@program_error = external global %struct.exception		; <ptr> [#uses=1]
5
6define void @typeinfo() {
7entry:
8	%eh_typeid = tail call i32 @llvm.eh.typeid.for( ptr @program_error )		; <i32> [#uses=0]
9	ret void
10}
11
12declare i32 @llvm.eh.typeid.for(ptr)
13