From 4c409494d85d0e0ea5db8b250224ed25e45ed592 Mon Sep 17 00:00:00 2001 From: Enea Zaffanella Date: Mon, 8 Jul 2013 14:50:30 +0000 Subject: 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 --- clang/unittests/AST/SourceLocationTest.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'clang/unittests/AST/SourceLocationTest.cpp') 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 Verifier; Verifier.expectRange(3, 10, 3, 12); + std::vector Args; + Args.push_back("-fno-delayed-template-parsing"); EXPECT_TRUE(Verifier.match( "template \n" "U foo() {\n" " return U{};\n" "}", - unresolvedConstructExpr(), Lang_CXX11)); + unresolvedConstructExpr(), Args, Lang_CXX11)); } -#endif } // end namespace ast_matchers } // end namespace clang -- cgit v1.2.3