diff options
Diffstat (limited to 'test/ELF/lto/irmover-error.ll')
| -rw-r--r-- | test/ELF/lto/irmover-error.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ELF/lto/irmover-error.ll b/test/ELF/lto/irmover-error.ll new file mode 100644 index 000000000000..aee411441c47 --- /dev/null +++ b/test/ELF/lto/irmover-error.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as -o %t1.bc %s +; RUN: llvm-as -o %t2.bc %S/Inputs/irmover-error.ll +; RUN: not ld.lld -m elf_x86_64 %t1.bc %t2.bc -o %t 2>&1 | FileCheck %s + +; CHECK: failed to link module {{.*}}2.bc: linking module flags 'foo': IDs have conflicting values + +target triple = "x86_64-unknown-linux-gnu" +target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" + +!0 = !{ i32 1, !"foo", i32 1 } + +!llvm.module.flags = !{ !0 } |
