2019-05-16 17:04:52 +08:00
|
|
|
; REQUIRES: x86
|
2019-05-16 13:23:25 +08:00
|
|
|
; RUN: llvm-as -o %t1.bc %s
|
|
|
|
; RUN: llvm-as -o %t2.bc %S/Inputs/irmover-warning.ll
|
|
|
|
; RUN: rm -f %t.a
|
|
|
|
; RUN: llvm-ar rcs %t.a %t2.bc
|
|
|
|
; RUN: ld.lld %t1.bc %t.a -o %t 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
; CHECK: warning: linking module flags 'foo': IDs have conflicting values
|
|
|
|
; CHECK-SAME: irmover-warning.ll.tmp.a(irmover-warning.ll.tmp2.bc at {{[0-9]+}})
|
|
|
|
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
2019-09-11 07:15:38 +08:00
|
|
|
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
2019-05-16 13:23:25 +08:00
|
|
|
|
|
|
|
declare void @f()
|
|
|
|
|
|
|
|
define void @g() {
|
|
|
|
call void @f()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
!0 = !{ i32 2, !"foo", i32 1 }
|
|
|
|
|
|
|
|
!llvm.module.flags = !{ !0 }
|