From: NAKAMURA Takumi Date: Tue, 5 Aug 2014 15:54:43 +0000 (+0000) Subject: ASTMatchersTests/matchesConditionallyWithCuda: Add -fno-ms-extensions, and get rid... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32f7b913f85e783f691ec7d40e0b2e6b22a9aef0;p=clang ASTMatchersTests/matchesConditionallyWithCuda: Add -fno-ms-extensions, and get rid of initializer list. I am not sure whether -xcuda might imply -fno-ms-extensions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214876 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/ASTMatchers/ASTMatchersTest.h b/unittests/ASTMatchers/ASTMatchersTest.h index 8919ceae5d..ce5c8d7f18 100644 --- a/unittests/ASTMatchers/ASTMatchersTest.h +++ b/unittests/ASTMatchers/ASTMatchersTest.h @@ -136,7 +136,10 @@ testing::AssertionResult matchesConditionallyWithCuda( std::unique_ptr Factory( newFrontendActionFactory(&Finder)); // Some tests use typeof, which is a gnu extension. - std::vector Args({"-xcuda", CompileArg}); + std::vector Args; + Args.push_back("-xcuda"); + Args.push_back("-fno-ms-extensions"); + Args.push_back(CompileArg); if (!runToolOnCodeWithArgs(Factory->create(), CudaHeader + Code, Args)) { return testing::AssertionFailure() << "Parsing error in \"" << Code << "\"";