teak-llvm/clang/test/Driver/cuda-constructor-alias.cu
Justin Lebar bbdf697a51 [CUDA] Add -target to cuda-constructor-alias.cu test so it doesn't fail on Mac.
The test was checking that we passed -mconstructor-alias to host
compilation, but that explicitly shouldn't happen on Mac.

llvm-svn: 258737
2016-01-25 22:52:31 +00:00

14 lines
497 B
Plaintext

// REQUIRES: clang-driver
// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
// 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 %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"