mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-23 21:46:05 +00:00

`%T` is not unique and deprecated [[1](https://llvm.org/docs/CommandGuide/lit.html#substitutions)]. This patch replaces all `%T` in `lld/test` with `%t.dir` (`mkdir` if necessary) --------- Signed-off-by: Peter Rong <PeterRong@meta.com>
16 lines
956 B
ArmAsm
16 lines
956 B
ArmAsm
# REQUIRES: x86
|
|
|
|
# RUN: mkdir -p %t.dir
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %t.dir/locally-imported-def.obj %S/Inputs/locally-imported-def.s
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %t.dir/locally-imported-imp1.obj %S/Inputs/locally-imported-imp.s
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %t.dir/locally-imported-imp2.obj %S/Inputs/locally-imported-imp.s
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %t.obj %s
|
|
# RUN: lld-link /entry:main %t.dir/locally-imported-def.obj %t.dir/locally-imported-imp1.obj %t.dir/locally-imported-imp2.obj %t.obj 2>&1 | FileCheck %s
|
|
|
|
# CHECK: warning: [[TESTDIR:.+]]locally-imported-imp1.obj: locally defined symbol imported: f (defined in [[TESTDIR]]locally-imported-def.obj)
|
|
# CHECK-NEXT: warning: [[TESTDIR:.+]]locally-imported-imp2.obj: locally defined symbol imported: f (defined in [[TESTDIR]]locally-imported-def.obj)
|
|
|
|
.globl main
|
|
main:
|
|
ret
|