aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalOpt/deadglobal.ll
blob: 7a47b8ea30bb5807aec694531c5162f346777236 (plain)
1
2
3
4
5
6
7
8
9
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep internal

@G = internal global i32 123            ; <i32*> [#uses=1]

define void @foo() {
        store i32 1, i32* @G
        ret void
}