mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
13 lines
178 B
LLVM
13 lines
178 B
LLVM
|
; RUN: as < %s | opt -globaldce
|
||
|
;
|
||
|
%X = global void() * %func
|
||
|
implementation
|
||
|
|
||
|
internal void %func() { ; Not dead, can be reachable via X
|
||
|
ret void
|
||
|
}
|
||
|
|
||
|
void %main() {
|
||
|
ret void
|
||
|
}
|