1; RUN: opt < %s -globalopt -S | FileCheck %s 2 3@G1 = internal global i32 123 ; <i32*> [#uses=1] 4@A1 = internal alias i32, i32* @G1 5 6; CHECK-NOT: @G1 7; CHECK: @G2 8; CHECK-NOT: @G3 9 10; CHECK-NOT: @A1 11 12define void @foo1() { 13; CHECK: define void @foo 14; CHECK-NEXT: ret 15 store i32 1, i32* @G1 16 ret void 17} 18 19@G2 = linkonce_odr constant i32 42 20 21define void @foo2() { 22; CHECK-LABEL: define void @foo2( 23; CHECK-NEXT: store 24 store i32 1, i32* @G2 25 ret void 26} 27 28@G3 = linkonce_odr constant i32 42 29