1 // REQUIRES: clang-driver
2 // REQUIRES: x86-registered-target
3 // REQUIRES: nvptx-registered-target
4 
5 // Check that we don't pass -mconstructor-aliases to CUDA device-side
6 // compilation, but we do pass it to host-side compilation.
7 
8 // RUN: %clang -### -target x86_64-linux-gnu %s 2>&1 | FileCheck %s
9 // CHECK: "-cc1"
10 // CHECK-NOT: "-fcuda-is-device" {{.*}}"-mconstructor-aliases"
11 // CHECK-NOT: "-mconstructor-aliases" {{.*}}"-fcuda-is-device"
12 // CHECK: "-cc1"
13 // CHECK-SAME: "-mconstructor-aliases"
14