1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/Linker/opaque.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

26 lines
575 B
LLVM

; RUN: llvm-link %p/opaque.ll %p/Inputs/opaque.ll -S -o - | FileCheck %s
; CHECK-DAG: %A = type {}
; CHECK-DAG: %B = type { %C, %C, %B* }
; CHECK-DAG: %B.1 = type { %D, %E, %B.1* }
; CHECK-DAG: %C = type { %A }
; CHECK-DAG: %D = type { %E }
; CHECK-DAG: %E = type opaque
; CHECK-DAG: @g1 = external global %B
; CHECK-DAG: @g2 = external global %A
; CHECK-DAG: @g3 = external global %B.1
; CHECK-DAG: getelementptr %A, %A* null, i32 0
%A = type opaque
%B = type { %C, %C, %B* }
%C = type { %A }
@g1 = external global %B
define %B* @use_g1() {
ret %B* @g1
}