summaryrefslogtreecommitdiff
path: root/test/Linker/pr22807.ll
blob: bb4ca2b4ccfb02204349d61d20fc083c52db3110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llvm-link -S -o - %p/pr22807.ll %p/Inputs/pr22807-1.ll %p/Inputs/pr22807-2.ll | FileCheck %s

; CHECK-NOT: type
; CHECK: %struct.B = type { %struct.A* }
; CHECK-NEXT: %struct.A = type { %struct.B* }
; CHECK-NOT: type

%struct.B = type { %struct.A* }
%struct.A = type opaque

define i32 @baz(%struct.B* %BB) {
  ret i32 0
}