1 ; RUN: opt -S -globalopt < %s | FileCheck %s
4 ; Globalopt should be able to evaluate an invoke.
5 ; CHECK: @tmp = local_unnamed_addr global i32 1
7 @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @_GLOBAL__I_a, i8* null }]
14 define void @_GLOBAL__I_a() personality i8* undef {
16 %tmp1 = invoke i32 @one()
17 to label %bb2 unwind label %bb4
20 store i32 %tmp1, i32* @tmp
24 %tmp5 = landingpad { i8*, i32 }
25 filter [0 x i8*] zeroinitializer