forked from OSchip/llvm-project
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:
parent
c4ce42980e
commit
360927923f
|
@ -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 << "\"";
|
||||
|
|
Loading…
Reference in New Issue