19 lines · plain
1// REQUIRES: x86-registered-target2// REQUIRES: amdgpu-registered-target3// REQUIRES: 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" %clang --target=x86_64-pc-windows-msvc -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 %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 "{{.*}}mytmp{{/|\\\\}}hip-temps-windows-gfx1030-{{.*}}.bc"17 18int main() {}19