[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / Driver / hip-launch-api.hip
blob8b240240bb57470d3d63744d8f57e83028325a5b
1 // REQUIRES: x86-registered-target
2 // REQUIRES: amdgpu-registered-target
4 // By default FE assumes -fhip-new-launch-api.
6 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -offload-arch=gfx906 \ 
7 // RUN:   -nogpulib -nogpuinc %s 2>&1 | FileCheck -check-prefixes=NEW %s
8 // NEW: "-fhip-new-launch-api"
10 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \
11 // RUN:   -nogpulib -nogpuinc -fhip-new-launch-api 2>&1 | FileCheck -check-prefixes=NEW %s
12 // NEW: "-fhip-new-launch-api"
14 // RUN: %clang -### --target=x86_64-unknown-linux-gnu -offload-arch=gfx906 %s \
15 // RUN:   -nogpulib -nogpuinc -fno-hip-new-launch-api 2>&1 | FileCheck -check-prefixes=OLD %s
16 // OLD-NOT: "-fhip-new-launch-api"