diff options
Diffstat (limited to 'test/Linker/pr22807.ll')
-rw-r--r-- | test/Linker/pr22807.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Linker/pr22807.ll b/test/Linker/pr22807.ll new file mode 100644 index 0000000..bb4ca2b --- /dev/null +++ b/test/Linker/pr22807.ll @@ -0,0 +1,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 +} |