summaryrefslogtreecommitdiffstats
path: root/llvm/test/Linker/Inputs/opaque.ll
blob: a5f27cba418ea4852bd6801ef37050b02bd95147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%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
}
OpenPOWER on IntegriCloud