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: http://review.tizen.org/git/?a=commitdiff_plain;h=8ee4126ae1c1d7ccc288f761c7d2ca04aadbef6b;p=platform%2Fupstream%2Fllvm.git 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 --- 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();