summaryrefslogtreecommitdiff
path: root/test/Transforms/GlobalDCE/2002-07-17-ConstantRef.ll
blob: 8bb6da55b9afe6b08ce005e8f34ff97e9fde2e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llvm-upgrade < %s | llvm-as | opt -globaldce
;
%X = global void() * %func
implementation

internal void %func() {  ; Not dead, can be reachable via X
  ret void
}

void %main() {
	ret void
}