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