Justin Lebar | 710a35f | 2016-01-25 22:36:35 +0000 | [diff] [blame] | 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 | |
Justin Lebar | bbdf697 | 2016-01-25 22:52:31 +0000 | [diff] [blame] | 8 | // RUN: %clang -### -target x86_64-linux-gnu %s 2>&1 | FileCheck %s |
Justin Lebar | 710a35f | 2016-01-25 22:36:35 +0000 | [diff] [blame] | 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" |