1 ; RUN: opt -S -globaldce < %s | FileCheck %s
3 ; CHECK: @llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @_notremovable }]
4 ; CHECK-NOT: @_GLOBAL__I_a
6 declare void @_notremovable()
8 @llvm.global_ctors = appending global [2 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @_GLOBAL__I_a }, { i32, void ()* } { i32 65535, void ()* @_notremovable }]
10 ; Function Attrs: nounwind readnone
11 define internal void @_GLOBAL__I_a() #1 section "__TEXT,__StaticInit,regular,pure_instructions" {