blob: 56d949471f2769e80cf24d1f510dff08e6d2d111 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
; RUN: llvm-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
}
|