mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-24 09:29:42 +00:00
We were already lazily linking functions, but all GlobalValues can be treated uniformly for this. The test updates are to ensure that a given GlobalValue is still linked in. This fixes pr21494. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223681 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
356 B
LLVM
24 lines
356 B
LLVM
; RUN: llvm-link %s -S -o - | FileCheck %s
|
|
|
|
@g1 = private global i8 0
|
|
; CHECK-NOT: @g1
|
|
|
|
@g2 = linkonce_odr global i8 0
|
|
; CHECK-NOT: @g2
|
|
|
|
@a1 = private alias i8* @g1
|
|
; CHECK-NOT: @a1
|
|
|
|
@a2 = linkonce_odr alias i8* @g2
|
|
; CHECK-NOT: @a2
|
|
|
|
define private void @f1() {
|
|
ret void
|
|
}
|
|
; CHECK-NOT: @f1
|
|
|
|
define linkonce_odr void @f2() {
|
|
ret void
|
|
}
|
|
; CHECK-NOT: @f2
|