29 lines · plain
1; RUN: opt < %s -passes=globalopt -S | FileCheck %s2 3@G1 = internal global i32 123 ; <ptr> [#uses=1]4@A1 = internal alias i32, ptr @G15 6; CHECK-NOT: @G17; CHECK: @G28; CHECK-NOT: @G39 10; CHECK-NOT: @A111 12define void @foo1() {13; CHECK: define void @foo14; CHECK-NEXT: ret15 store i32 1, ptr @G116 ret void17}18 19@G2 = linkonce_odr constant i32 4220 21define void @foo2() {22; CHECK-LABEL: define void @foo2(23; CHECK-NEXT: store24 store i32 1, ptr @G225 ret void26}27 28@G3 = linkonce_odr constant i32 4229