blob: 3679d516117548dc92dc2e57e46839de7d729b87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
; RUN: llvm-upgrade < %s | llvm-as | 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
}
|