]> granicus.if.org Git - clang/commitdiff
clang/unittests/Analysis/CFGTest.cpp: Appease msc targets with -fno-delayed-template...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 8 Jul 2016 16:52:36 +0000 (16:52 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 8 Jul 2016 16:52:36 +0000 (16:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274879 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Analysis/CFGTest.cpp

index 715fdcb80605698168f194a84315a325c3971e30..a8d397e9a534be38692682a07c12e4fe058b0cc2 100644 (file)
@@ -48,7 +48,7 @@ TEST(CFG, RangeBasedForOverDependentType) {
   Finder.addMatcher(ast_matchers::functionDecl().bind("func"), &Callback);
   std::unique_ptr<tooling::FrontendActionFactory> Factory(
       tooling::newFrontendActionFactory(&Finder));
-  std::vector<std::string> Args = {"-std=c++11"};
+  std::vector<std::string> Args = {"-std=c++11", "-fno-delayed-template-parsing"};
   ASSERT_TRUE(tooling::runToolOnCodeWithArgs(Factory->create(), Code, Args));
   EXPECT_TRUE(Callback.SawFunctionBody);
 }