diff --git a/clang/unittests/Analysis/CFGTest.cpp b/clang/unittests/Analysis/CFGTest.cpp index 715fdcb80605..a8d397e9a534 100644 --- a/clang/unittests/Analysis/CFGTest.cpp +++ b/clang/unittests/Analysis/CFGTest.cpp @@ -48,7 +48,7 @@ TEST(CFG, RangeBasedForOverDependentType) { Finder.addMatcher(ast_matchers::functionDecl().bind("func"), &Callback); std::unique_ptr Factory( tooling::newFrontendActionFactory(&Finder)); - std::vector Args = {"-std=c++11"}; + std::vector Args = {"-std=c++11", "-fno-delayed-template-parsing"}; ASSERT_TRUE(tooling::runToolOnCodeWithArgs(Factory->create(), Code, Args)); EXPECT_TRUE(Callback.SawFunctionBody); }