summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST/SourceLocationTest.cpp
diff options
context:
space:
mode:
authorEnea Zaffanella <zaffanella@cs.unipr.it>2013-07-08 14:50:30 +0000
committerEnea Zaffanella <zaffanella@cs.unipr.it>2013-07-08 14:50:30 +0000
commit4c409494d85d0e0ea5db8b250224ed25e45ed592 (patch)
tree18ebc1981c8ff9a6d3346ef1dfeb754e70f9fd8f /clang/unittests/AST/SourceLocationTest.cpp
parentc0944b50fe93f69a7170e66349c323ebea2e1939 (diff)
downloadbcm5719-llvm-4c409494d85d0e0ea5db8b250224ed25e45ed592.tar.gz
bcm5719-llvm-4c409494d85d0e0ea5db8b250224ed25e45ed592.zip
Fixed testcase failing under MS by adding "-fno-delayed-template-parsing",
as suggested by Takumi. To this end, added a MatchVerifier::match() overload accepting a vector of invocation arguments. llvm-svn: 185827
Diffstat (limited to 'clang/unittests/AST/SourceLocationTest.cpp')
-rw-r--r--clang/unittests/AST/SourceLocationTest.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/unittests/AST/SourceLocationTest.cpp b/clang/unittests/AST/SourceLocationTest.cpp
index 4a4250710a9..95ef2c425b5 100644
--- a/clang/unittests/AST/SourceLocationTest.cpp
+++ b/clang/unittests/AST/SourceLocationTest.cpp
@@ -211,21 +211,18 @@ TEST(CXXFunctionalCastExpr, SourceRange) {
functionalCastExpr(), Lang_CXX11));
}
-#if !defined(_MSC_VER)
-// FIXME: It could pass if MS-compatible mode were disabled.
-// Args.push_back("-fno-delayed-template-parsing");
-
TEST(CXXUnresolvedConstructExpr, SourceRange) {
RangeVerifier<CXXUnresolvedConstructExpr> Verifier;
Verifier.expectRange(3, 10, 3, 12);
+ std::vector<std::string> Args;
+ Args.push_back("-fno-delayed-template-parsing");
EXPECT_TRUE(Verifier.match(
"template <typename U>\n"
"U foo() {\n"
" return U{};\n"
"}",
- unresolvedConstructExpr(), Lang_CXX11));
+ unresolvedConstructExpr(), Args, Lang_CXX11));
}
-#endif
} // end namespace ast_matchers
} // end namespace clang
OpenPOWER on IntegriCloud