From: Aaron Ballman Date: Thu, 29 May 2014 12:59:11 +0000 (+0000) Subject: Fixing a test case which was failing the MSVC build bots. When -std isn't specified... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8aaef7c3093b2171b3c6a69d82e06130ff96277a;p=clang Fixing a test case which was failing the MSVC build bots. When -std isn't specified with an MSVC build, it defaults to -std=c++11, which overrides the -x cuda option. In turn, this causes all CUDA language option checks to fail. This fix is possibly temporary while we determine whether -x cuda should be considered along with -std=c++11 when setting language options. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209808 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Index/attributes-cuda.cu b/test/Index/attributes-cuda.cu index e0023a1366..dd571f15a8 100644 --- a/test/Index/attributes-cuda.cu +++ b/test/Index/attributes-cuda.cu @@ -1,4 +1,4 @@ -// RUN: c-index-test -test-load-source all -x cuda %s | FileCheck %s +// RUN: c-index-test -test-load-source all -x cuda -std=cuda %s | FileCheck %s __attribute__((device)) void f_device(); __attribute__((global)) void f_global();