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

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

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