[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / Driver / cuda-constructor-alias.cu
blob6639420efa3e691e9256da0b914e8827b70ab6b4
1 // REQUIRES: x86-registered-target
2 // REQUIRES: nvptx-registered-target
4 // Check that we don't pass -mconstructor-aliases to CUDA device-side
5 // compilation, but we do pass it to host-side compilation.
7 // RUN: %clang -### --target=x86_64-linux-gnu --cuda-path=%S/Inputs/CUDA/usr/local/cuda %s 2>&1 | FileCheck %s
8 // CHECK: "-cc1"
9 // CHECK-NOT: "-fcuda-is-device" {{.*}}"-mconstructor-aliases"
10 // CHECK-NOT: "-mconstructor-aliases" {{.*}}"-fcuda-is-device"
11 // CHECK: "-cc1"
12 // CHECK-SAME: "-mconstructor-aliases"