From dadd853bce8cb30ace1aedc7ba2e23cb451b11be Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 17 Jun 2016 02:04:51 +0000 Subject: [PATCH] ToolingTests/runToolOnCode.TestSkipFunctionBody: Appease msc targets. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272985 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Tooling/ToolingTest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/unittests/Tooling/ToolingTest.cpp b/unittests/Tooling/ToolingTest.cpp index c0b8695e34..10ac0c33ed 100644 --- a/unittests/Tooling/ToolingTest.cpp +++ b/unittests/Tooling/ToolingTest.cpp @@ -256,6 +256,7 @@ struct SkipBodyAction : public clang::ASTFrontendAction { TEST(runToolOnCode, TestSkipFunctionBody) { std::vector Args = {"-std=c++11"}; + std::vector 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 int skipMe() { an_error_here }" "int x = skipMe();")); - EXPECT_FALSE( - runToolOnCode(new SkipBodyAction, - "template int skipMeNot() { an_error_here }")); + EXPECT_FALSE(runToolOnCodeWithArgs( + new SkipBodyAction, + "template int skipMeNot() { an_error_here }", Args2)); } TEST(runToolOnCodeWithArgs, TestNoDepFile) { -- 2.40.0