aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/2003-05-15-TypeProblem.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/2003-05-15-TypeProblem.ll')
-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 0000000..2c7576f
--- /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} | llvm-as > %t.2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.1.bc
+; RUN: llvm-link %t.1.bc %t.2.bc
+
+%S = type { %T* }
+%T = type int
+