summaryrefslogtreecommitdiff
path: root/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll
blob: 2a398468beec63902b64d6e60e5fcd6f9d61a2eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llvm-as < %s | opt -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
}