From: Justin Lebar Date: Mon, 25 Jan 2016 22:52:31 +0000 (+0000) Subject: [CUDA] Add -target to cuda-constructor-alias.cu test so it doesn't fail on Mac. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ab4646040df2ad1b77e625c00ca814520380bbd;p=clang [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258737 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/cuda-constructor-alias.cu b/test/Driver/cuda-constructor-alias.cu index 76f8e4fc90..e0fd329abf 100644 --- a/test/Driver/cuda-constructor-alias.cu +++ b/test/Driver/cuda-constructor-alias.cu @@ -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"