aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll
blob: 740f7201a348aefb768a6f876886dffb7011e4ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; 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
}