1; REQUIRES: x86 2; RUN: llvm-as -o %t1.bc %s 3; RUN: llvm-as -o %t2.bc %S/Inputs/irmover-warning.ll 4; RUN: rm -f %t.a 5; RUN: llvm-ar rcs %t.a %t2.bc 6; RUN: ld.lld %t1.bc %t.a -o %t 2>&1 | FileCheck %s 7 8; CHECK: warning: linking module flags 'foo': IDs have conflicting values 9; CHECK-SAME: irmover-warning.ll.tmp.a(irmover-warning.ll.tmp2.bc at {{[0-9]+}}) 10 11target triple = "x86_64-unknown-linux-gnu" 12target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 13 14declare void @f() 15 16define void @g() { 17 call void @f() 18 ret void 19} 20 21!0 = !{ i32 2, !"foo", i32 1 } 22 23!llvm.module.flags = !{ !0 } 24