YouCompleteMe/cpp/llvm/test/Transforms/GlobalOpt/deadglobal.ll

10 lines
181 B
LLVM
Raw Normal View History

2012-07-05 20:51:06 -04:00
; 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
}