summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/globalredefinition2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Feature/globalredefinition2.ll')
-rw-r--r--llvm/test/Feature/globalredefinition2.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Feature/globalredefinition2.ll b/llvm/test/Feature/globalredefinition2.ll
new file mode 100644
index 00000000000..4e14b005334
--- /dev/null
+++ b/llvm/test/Feature/globalredefinition2.ll
@@ -0,0 +1,6 @@
+; Test that redefinitions of globals produces an error in llvm-upgrade
+; RUN: llvm-upgrade < %s -o /dev/null -f 2>&1 | \
+; RUN: grep "Global variable '%B' was renamed to '"
+
+%B = global int 7
+%B = global int 7
OpenPOWER on IntegriCloud