brintos

brintos / llvm-project-archived public Read only

0
0
Text · 780 B · c63e47a Raw
31 lines · plain
1; REQUIRES: x862;; Test that the referenced filename is correct (not <internal> or lto.tmp).3 4; RUN: split-file %s %t5; RUN: llvm-as %t/a.ll -o %ta.o6; RUN: llvm-as %t/b.ll -o %tb.o7; RUN: ld.lld --warn-backrefs --start-lib %tb.o --end-lib %ta.o -o /dev/null 2>&1 | FileCheck %s8 9; CHECK: warning: backward reference detected: f in {{.*}}a.o refers to {{.*}}b.o10 11;--- a.ll12target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"13target triple = "x86_64-unknown-linux-gnu"14 15declare void @f()16 17define void @_start() {18entry:19  call void () @f()20  ret void21}22 23;--- b.ll24target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"25target triple = "x86_64-unknown-linux-gnu"26 27define void @f() {28entry:29  ret void30}31