r272985 - ToolingTests/runToolOnCode.TestSkipFunctionBody: Appease msc targets.

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 16 19:04:51 PDT 2016


Author: chapuni
Date: Thu Jun 16 21:04:51 2016
New Revision: 272985

URL: http://llvm.org/viewvc/llvm-project?rev=272985&view=rev
Log:
ToolingTests/runToolOnCode.TestSkipFunctionBody: Appease msc targets.

Modified:
    cfe/trunk/unittests/Tooling/ToolingTest.cpp

Modified: cfe/trunk/unittests/Tooling/ToolingTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/ToolingTest.cpp?rev=272985&r1=272984&r2=272985&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/ToolingTest.cpp (original)
+++ cfe/trunk/unittests/Tooling/ToolingTest.cpp Thu Jun 16 21:04:51 2016
@@ -256,6 +256,7 @@ struct SkipBodyAction : public clang::AS
 
 TEST(runToolOnCode, TestSkipFunctionBody) {
   std::vector<std::string> Args = {"-std=c++11"};
+  std::vector<std::string> Args2 = {"-fno-delayed-template-parsing"};
 
   EXPECT_TRUE(runToolOnCode(new SkipBodyAction,
                             "int skipMe() { an_error_here }"));
@@ -310,9 +311,9 @@ TEST(runToolOnCode, TestSkipFunctionBody
   EXPECT_TRUE(runToolOnCode(
       new SkipBodyAction, "template<typename T> int skipMe() { an_error_here }"
                           "int x = skipMe<int>();"));
-  EXPECT_FALSE(
-      runToolOnCode(new SkipBodyAction,
-                    "template<typename T> int skipMeNot() { an_error_here }"));
+  EXPECT_FALSE(runToolOnCodeWithArgs(
+      new SkipBodyAction,
+      "template<typename T> int skipMeNot() { an_error_here }", Args2));
 }
 
 TEST(runToolOnCodeWithArgs, TestNoDepFile) {




More information about the cfe-commits mailing list