summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/2003-05-15-AssemblerProblem.llx
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Assembler/2003-05-15-AssemblerProblem.llx')
-rw-r--r--llvm/test/Assembler/2003-05-15-AssemblerProblem.llx15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/Assembler/2003-05-15-AssemblerProblem.llx b/llvm/test/Assembler/2003-05-15-AssemblerProblem.llx
new file mode 100644
index 00000000000..a4802940ecb
--- /dev/null
+++ b/llvm/test/Assembler/2003-05-15-AssemblerProblem.llx
@@ -0,0 +1,15 @@
+; This bug was caused by two CPR's existing for the same global variable,
+; colliding in the Module level CPR map.
+
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
+
+void %test() {
+ call void (...)* cast (void (short*, int)* %AddString to void (...)*)(short* null, int 0)
+ ret void
+}
+
+void %AddString(short* %tmp.124, int %tmp.127) {
+ call void (...)* cast (void (short*, int)* %AddString to void (...)*)(short* %tmp.124, int %tmp.127)
+ ret void
+}
+
OpenPOWER on IntegriCloud