xref: /llvm-project/llvm/test/CodeGen/Generic/2007-12-31-UnusedSelector.ll (revision 0e8bd5a44a1bd8034706189b49a7a816c59304cd)
1; RUN: llc < %s
2; PR1833
3
4	%struct.__class_type_info_pseudo = type { %struct.__type_info_pseudo }
5	%struct.__type_info_pseudo = type { ptr, ptr }
6@_ZTI2e1 = external constant %struct.__class_type_info_pseudo		; <ptr> [#uses=1]
7
8define void @_Z7ex_testv() personality ptr @__gxx_personality_v0 {
9entry:
10	invoke void @__cxa_throw( ptr null, ptr @_ZTI2e1, ptr null ) noreturn
11			to label %UnifiedUnreachableBlock unwind label %lpad
12
13bb14:		; preds = %lpad
14	unreachable
15
16lpad:		; preds = %entry
17        %lpad1 = landingpad { ptr, i32 }
18                  catch ptr null
19	invoke void @__cxa_end_catch( )
20			to label %bb14 unwind label %lpad17
21
22lpad17:		; preds = %lpad
23        %lpad2 = landingpad { ptr, i32 }
24                  catch ptr null
25	unreachable
26
27UnifiedUnreachableBlock:		; preds = %entry
28	unreachable
29}
30
31declare void @__cxa_throw(ptr, ptr, ptr) noreturn
32
33declare void @__cxa_end_catch()
34
35declare i32 @__gxx_personality_v0(...) addrspace(0)
36