summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/gold/X86/irmover-error.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/gold/X86/irmover-error.ll')
-rw-r--r--llvm/test/tools/gold/X86/irmover-error.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/tools/gold/X86/irmover-error.ll b/llvm/test/tools/gold/X86/irmover-error.ll
new file mode 100644
index 00000000000..2bfbaf4e8af
--- /dev/null
+++ b/llvm/test/tools/gold/X86/irmover-error.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as -o %t1.bc %s
+; RUN: llvm-as -o %t2.bc %S/Inputs/irmover-error.ll
+; RUN: not %gold -plugin %llvmshlibdir/LLVMgold.so -o %t %t1.bc %t2.bc 2>&1 | FileCheck %s
+
+; CHECK: fatal error: Failed to link module {{.*}}2.bc: linking module flags 'foo': IDs have conflicting values
+
+!0 = !{ i32 1, !"foo", i32 1 }
+
+!llvm.module.flags = !{ !0 }
OpenPOWER on IntegriCloud