blob: e0fd329abf62705501626ba4f4d14eaffc196fa4 [file] [log] [blame]
Justin Lebar710a35f2016-01-25 22:36:35 +00001// 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
Justin Lebarbbdf6972016-01-25 22:52:31 +00008// RUN: %clang -### -target x86_64-linux-gnu %s 2>&1 | FileCheck %s
Justin Lebar710a35f2016-01-25 22:36:35 +00009// 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"