[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / cuda-constructor-alias.cu
blobe2c1ea6bae808beb5ce21bcef629d87e3a0f68f4
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 %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"