aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Linker/2003-01-30-LinkerTypeRename.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Linker/2003-01-30-LinkerTypeRename.ll b/test/Linker/2003-01-30-LinkerTypeRename.ll
new file mode 100644
index 0000000000..a8837f7770
--- /dev/null
+++ b/test/Linker/2003-01-30-LinkerTypeRename.ll
@@ -0,0 +1,9 @@
+; This fails because the linker renames the non-opaque type not the opaque
+; one...
+
+; RUN: echo "%Ty = type opaque" | as > Output/%s.1.bc
+; RUN: as < %s > Output/%s.2.bc
+; RUN: link Output/%s.[12].bc | dis | grep '%Ty ' | grep -v opaque
+
+%Ty = type int
+