1 ; RUN: opt -S -passes=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, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @_GLOBAL__I_a, ptr null }]
14 define void @_GLOBAL__I_a() personality ptr undef {
16 %tmp1 = invoke i32 @one()
17 to label %bb2 unwind label %bb4
20 store i32 %tmp1, ptr @tmp
24 %tmp5 = landingpad { ptr, i32 }
25 filter [0 x ptr] zeroinitializer