blob: 76f41e8fc2189bed49186dee3b74e9231d6a333b [file] [log] [blame]
Michael Gottesmanccc93e72013-04-09 05:18:53 +00001; RUN: opt < %s -simplifycfg -S | FileCheck %s
2
3; CHECK-NOT: invoke
Duncan Sandsa915b532007-11-22 22:24:59 +00004
5declare i32 @func(i8*) nounwind
6
7define i32 @test() {
Duncan Sands5208d1a2007-11-28 17:07:01 +00008 invoke i32 @func( i8* null )
Duncan Sandsa915b532007-11-22 22:24:59 +00009 to label %Cont unwind label %Other ; <i32>:1 [#uses=0]
10
11Cont: ; preds = %0
12 ret i32 0
13
14Other: ; preds = %0
Reid Kleckner96d01132015-02-11 01:23:16 +000015 landingpad { i8*, i32 } personality i32 (...)* @__gxx_personality_v0
16 catch i8* null
Duncan Sandsa915b532007-11-22 22:24:59 +000017 ret i32 1
18}
Reid Kleckner96d01132015-02-11 01:23:16 +000019
20declare i32 @__gxx_personality_v0(...)