summaryrefslogtreecommitdiff
path: root/test/Transforms/GlobalDCE/2002-07-17-CastRef.ll
blob: d68d3930c64bf61093b7ddc6eb97305d4ac32ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: as < %s | opt -globaldce
;
implementation

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

void %main() {
	%X = cast void()* %func to int*
	ret void
}