xref: /llvm-project/clang/test/Driver/hip-temps-linux.hip (revision 1f8a3ce325be51a1004657b08a607825447fee1b)
1// REQUIRES: x86-registered-target
2// REQUIRES: amdgpu-registered-target
3// REQUIRES: system-linux
4
5// Check no temporary files or directores are left after compilation.
6// RUN: rm -rf %t/mytmp
7// RUN: mkdir -p %t/mytmp
8// RUN: env 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 %s
12// RUN: ls %t/mytmp >%t/mytmp.txt 2>&1
13// RUN: touch %t/empty.txt
14// RUN: diff %t/mytmp.txt %t/empty.txt
15
16// CHECK: -o {{.*}}/mytmp/hip-temps-linux-gfx1030-{{.*}}.bc
17
18int main() {}
19