mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-29 22:52:18 +00:00
0178d23ade
We already linked available_externally and linkonce lazily, this just adds declarations to the list. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254917 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
276 B
LLVM
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
|
|
}
|