xref: /aosp_15_r20/external/llvm/test/Linker/pr22807.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-link -S -o - %p/pr22807.ll %p/Inputs/pr22807-1.ll %p/Inputs/pr22807-2.ll | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: type
4*9880d681SAndroid Build Coastguard Worker; CHECK: %struct.B = type { %struct.A* }
5*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: %struct.A = type { %struct.B* }
6*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: type
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker%struct.B = type { %struct.A* }
9*9880d681SAndroid Build Coastguard Worker%struct.A = type opaque
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Workerdefine i32 @baz(%struct.B* %BB) {
12*9880d681SAndroid Build Coastguard Worker  ret i32 0
13*9880d681SAndroid Build Coastguard Worker}
14