reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
; 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
}