1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/Linker/Inputs/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

22 lines
276 B
LLVM

%A = type { }
%B = type { %D, %E, %B* }
%D = type { %E }
%E = type opaque
@g2 = external global %A
@g3 = external global %B
define void @f1() {
getelementptr %A, %A* null, i32 0
ret void
}
define %A* @use_g2() {
ret %A* @g2
}
define %B* @use_g3() {
ret %B* @g3
}