mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-28 06:22:51 +01:00
13 lines
184 B
LLVM
13 lines
184 B
LLVM
|
; 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
|
||
|
}
|