[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
This commit is contained in:
Justin Lebar 2016-01-25 22:52:31 +00:00
parent 8976365c38
commit bbdf697a51
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
// Check that we don't pass -mconstructor-aliases to CUDA device-side
// compilation, but we do pass it to host-side compilation.
// RUN: %clang -### %s 2>&1 | FileCheck %s
// 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"