summaryrefslogtreecommitdiffstats
path: root/clang/unittests
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2016-06-17 02:04:51 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2016-06-17 02:04:51 +0000
commitc690ee046e19f192d6f333d357726bab859d7bd8 (patch)
tree642839d86cf5755375b6cbea144eddb1929e7dd6 /clang/unittests
parent424b4081658319dc33c4f701bd15a088be932282 (diff)
downloadbcm5719-llvm-c690ee046e19f192d6f333d357726bab859d7bd8.tar.gz
bcm5719-llvm-c690ee046e19f192d6f333d357726bab859d7bd8.zip
ToolingTests/runToolOnCode.TestSkipFunctionBody: Appease msc targets.
llvm-svn: 272985
Diffstat (limited to 'clang/unittests')
-rw-r--r--clang/unittests/Tooling/ToolingTest.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/unittests/Tooling/ToolingTest.cpp b/clang/unittests/Tooling/ToolingTest.cpp
index c0b8695e344..10ac0c33ed8 100644
--- a/clang/unittests/Tooling/ToolingTest.cpp
+++ b/clang/unittests/Tooling/ToolingTest.cpp
@@ -256,6 +256,7 @@ struct SkipBodyAction : public clang::ASTFrontendAction {
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) {
OpenPOWER on IntegriCloud