aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Linker/2003-05-15-TypeProblem.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Linker/2003-05-15-TypeProblem.ll b/test/Linker/2003-05-15-TypeProblem.ll
new file mode 100644
index 0000000000..37bdbfd3bf
--- /dev/null
+++ b/test/Linker/2003-05-15-TypeProblem.ll
@@ -0,0 +1,10 @@
+; This one fails because the LLVM runtime is allowing two null pointers of
+; the same type to be created!
+
+; RUN: echo "%S = type { %T*} %T = type opaque" | as > Output/%s.2.bc
+; RUN: as < %s > Output/%s.1.bc
+; RUN: link Output/%s.[12].bc
+
+%S = type { %T* }
+%T = type int
+