1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/test/Linker/ConstantGlobals.ll
Rafael Espindola 1d4a6cc6f5 Link declaration lazily.
We already linked available_externally and linkonce lazily, this just
adds declarations to the list.

llvm-svn: 254917
2015-12-07 16:31:41 +00:00

13 lines
339 B
LLVM

; RUN: llvm-link %s %S/Inputs/ConstantGlobals.ll -S | FileCheck %s
; RUN: llvm-link %S/Inputs/ConstantGlobals.ll %s -S | FileCheck %s
; CHECK-DAG: @X = constant [1 x i32] [i32 8]
@X = external global [1 x i32]
; CHECK-DAG: @Y = external global [1 x i32]
@Y = external global [1 x i32]
define [1 x i32]* @use-Y() {
ret [1 x i32] *@Y
}