YouCompleteMe/cpp/llvm/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll
2012-07-05 17:51:06 -07:00

14 lines
222 B
LLVM

; RUN: opt < %s -globaldce
;
@X = global void ()* @func ; <void ()**> [#uses=0]
; Not dead, can be reachable via X
define internal void @func() {
ret void
}
define void @main() {
ret void
}