summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-23 21:13:26 +0000
committerChris Lattner <sabre@nondot.org>2003-08-23 21:13:26 +0000
commit8d8523b27a15dd733bfb2e880fba9e667bfe7e2b (patch)
tree776b809e8a7e3cba9fdf2ad348ed964d3850dcbd /test
parentc07ae39c3d06e714b5a45851810bf7094004f4d2 (diff)
downloadllvm-8d8523b27a15dd733bfb2e880fba9e667bfe7e2b.tar.gz
llvm-8d8523b27a15dd733bfb2e880fba9e667bfe7e2b.tar.bz2
llvm-8d8523b27a15dd733bfb2e880fba9e667bfe7e2b.tar.xz
New testcase, which causes the linker to segv.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8082 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Linker/2003-08-23-RecursiveOpaqueTypeResolve.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Linker/2003-08-23-RecursiveOpaqueTypeResolve.ll b/test/Linker/2003-08-23-RecursiveOpaqueTypeResolve.ll
new file mode 100644
index 0000000000..2800e3b174
--- /dev/null
+++ b/test/Linker/2003-08-23-RecursiveOpaqueTypeResolve.ll
@@ -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* }