19 lines · plain
1// REQUIRES: x86-registered-target2// REQUIRES: amdgpu-registered-target3// UNSUPPORTED: system-windows4 5// Check no temporary files or directores are left after compilation.6// RUN: rm -rf %t/mytmp7// RUN: mkdir -p %t/mytmp8// RUN: env TMP="%t/mytmp" TMPDIR="%t/mytmp" %clang --target=x86_64-linux-gnu -nogpulib -nogpuinc \9// RUN: --rocm-path=%S/Inputs/rocm -nostdinc -nostdlib -c \10// RUN: --offload-arch=gfx1030 -emit-llvm -v %s 2>&1 | \11// RUN: FileCheck -check-prefixes=CHECK -DOUTPUT_PATH="%t%{fs-sep}mytmp%{fs-sep}" %s12// RUN: ls %t/mytmp >%t/mytmp.txt 2>&113// RUN: touch %t/empty.txt14// RUN: diff %t/mytmp.txt %t/empty.txt15 16// CHECK: -o {{"?}}[[OUTPUT_PATH]]hip-temps-linux-gfx1030-{{.*}}.bc{{"?}}17 18int main() {}19