aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Driver/cuda-constructor-alias.cu
blob: b7867e095f27fa88ed48973bdefd7da9eb0efead (plain)
1
2
3
4
5
6
7
8
9
// Check that we don't pass -mconstructor-aliases to CUDA device-side
// compilation, but we do pass it to host-side compilation.

// RUN: %clang -### --target=x86_64-linux-gnu --cuda-path=%S/Inputs/CUDA/usr/local/cuda %s 2>&1 | FileCheck %s
// CHECK: "-cc1"
// CHECK-NOT: "-fcuda-is-device" {{.*}}"-mconstructor-aliases"
// CHECK-NOT: "-mconstructor-aliases" {{.*}}"-fcuda-is-device"
// CHECK: "-cc1"
// CHECK-SAME: "-mconstructor-aliases"