mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
15 lines
568 B
LLVM
15 lines
568 B
LLVM
|
; RUN: opt -S -globaldce < %s | FileCheck %s
|
||
|
|
||
|
; CHECK: @llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @_notremovable }]
|
||
|
; CHECK-NOT: @_GLOBAL__I_a
|
||
|
|
||
|
declare void @_notremovable()
|
||
|
|
||
|
@llvm.global_ctors = appending global [2 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @_GLOBAL__I_a }, { i32, void ()* } { i32 65535, void ()* @_notremovable }]
|
||
|
|
||
|
; Function Attrs: nounwind readnone
|
||
|
define internal void @_GLOBAL__I_a() #1 section "__TEXT,__StaticInit,regular,pure_instructions" {
|
||
|
entry:
|
||
|
ret void
|
||
|
}
|