From 8ee4126ae1c1d7ccc288f761c7d2ca04aadbef6b Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 29 May 2014 12:59:11 +0000 Subject: [PATCH] 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. llvm-svn: 209808 --- clang/test/Index/attributes-cuda.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/test/Index/attributes-cuda.cu b/clang/test/Index/attributes-cuda.cu index e0023a1..dd571f1 100644 --- a/clang/test/Index/attributes-cuda.cu +++ b/clang/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(); -- 2.7.4