24 lines · plain
1; REQUIRES: x862; RUN: llvm-as -o %t1.bc %s3; RUN: llvm-as -o %t2.bc %S/Inputs/irmover-warning.ll4; RUN: rm -f %t.a5; RUN: llvm-ar rcs %t.a %t2.bc6; RUN: ld.lld %t1.bc %t.a -o %t 2>&1 | FileCheck %s7 8; CHECK: warning: linking module flags 'foo': IDs have conflicting values9; 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 void19}20 21!0 = !{ i32 2, !"foo", i32 1 }22 23!llvm.module.flags = !{ !0 }24