clang/test/Driver/cuda-constructor-alias.cu
raw| 1 | // Check that we don't pass -mconstructor-aliases to CUDA device-side |
| 2 | // compilation, but we do pass it to host-side compilation. |
| 3 | |
| 4 | // RUN: %clang -### --target=x86_64-linux-gnu --cuda-path=%S/Inputs/CUDA/usr/local/cuda %s 2>&1 | FileCheck %s |
| 5 | // CHECK: "-cc1" |
| 6 | // CHECK-NOT: "-fcuda-is-device" {{.*}}"-mconstructor-aliases" |
| 7 | // CHECK-NOT: "-mconstructor-aliases" {{.*}}"-fcuda-is-device" |
| 8 | // CHECK: "-cc1" |
| 9 | // CHECK-SAME: "-mconstructor-aliases" |