brintos

brintos / llvm-project-archived public Read only

0
0
Text · 954 B · cc1077c Raw
36 lines · plain
1; REQUIRES: x862; RUN: rm -rf %t; split-file %s %t3; RUN: llvm-as -o %t/first.bc %t/first.ll4; RUN: llvm-as -o %t/second.bc %t/second.ll5; RUN: %no-fatal-warnings-lld -dylib %t/first.bc %t/second.bc -o /dev/null 2>&1 | FileCheck %s6 7;; FIXME: can we replace ld-temp.o with a proper name?8; CHECK: warning: linking module flags 'foo': IDs have conflicting values ('i32 2' from {{.*}}second.bc with 'i32 1' from ld-temp.o)9 10;--- first.ll11target triple = "x86_64-apple-macosx10.15.0"12target datalayout = "e-m:o-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 25;--- second.ll26target triple = "x86_64-apple-macosx10.15.0"27target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"28 29define void @f() {30  ret void31}32 33!0 = !{ i32 2, !"foo", i32 2 }34 35!llvm.module.flags = !{ !0 }36