llvm/test/tools/gold/X86/irmover-error.ll
raw| 1 | ; RUN: llvm-as -o %t1.bc %s |
| 2 | ; RUN: llvm-as -o %t2.bc %S/Inputs/irmover-error.ll |
| 3 | ; RUN: not %gold -plugin %llvmshlibdir/LLVMgold%shlibext -o %t %t1.bc %t2.bc 2>&1 | FileCheck %s |
| 4 | |
| 5 | ; CHECK: fatal error: Failed to link module {{.*}}2.bc: linking module flags 'foo': IDs have conflicting values |
| 6 | |
| 7 | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |
| 8 | |
| 9 | !0 = !{ i32 1, !"foo", i32 1 } |
| 10 | |
| 11 | !llvm.module.flags = !{ !0 } |