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

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

void %main() {
	ret void
}