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: http://review.tizen.org/git/?a=commitdiff_plain;h=360927923f9c134a99146f1c5be59ea9ef55a19e;p=platform%2Fupstream%2Fllvm.git ASTMatchersTests/matchesConditionallyWithCuda: Add -fno-ms-extensions, and get rid of initializer list. I am not sure whether -xcuda might imply -fno-ms-extensions. llvm-svn: 214876 --- diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.h b/clang/unittests/ASTMatchers/ASTMatchersTest.h index 8919cea..ce5c8d7 100644 --- a/clang/unittests/ASTMatchers/ASTMatchersTest.h +++ b/clang/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 << "\"";