New testcase, which causes the linker to segv.
authorChris Lattner <sabre@nondot.org>
Sat, 23 Aug 2003 21:13:26 +0000 (21:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 23 Aug 2003 21:13:26 +0000 (21:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8082 91177308-0d34-0410-b5e6-96231b3b80d8

test/Linker/2003-08-23-RecursiveOpaqueTypeResolve.ll [new file with mode: 0644]

diff --git a/test/Linker/2003-08-23-RecursiveOpaqueTypeResolve.ll b/test/Linker/2003-08-23-RecursiveOpaqueTypeResolve.ll
new file mode 100644 (file)
index 0000000..2800e3b
--- /dev/null
@@ -0,0 +1,8 @@
+; It's a bad idea to go recursively trapesing through types without a safety 
+; net.
+
+; RUN: as < %s > Output/%s.out1.bc
+; RUN: echo "%S = type { %S*, int* }" | as > Output/%s.out2.bc
+; RUN: link Output/%s.out[12].bc
+
+%S = type { %S*, opaque* }