mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00: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
|
||
|
}
|