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
This commit is contained in:
NAKAMURA Takumi 2014-08-05 15:54:43 +00:00
parent c4ce42980e
commit 360927923f
1 changed files with 4 additions and 1 deletions

View File

@ -136,7 +136,10 @@ testing::AssertionResult matchesConditionallyWithCuda(
std::unique_ptr<FrontendActionFactory> Factory(
newFrontendActionFactory(&Finder));
// Some tests use typeof, which is a gnu extension.
std::vector<std::string> Args({"-xcuda", CompileArg});
std::vector<std::string> 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 << "\"";