Fix ASTImporterTest on Windows after r333082
With MS compatibility, Sema adds an implicit definition of type_info, which was causing the matchers to return 3 instead of 2. llvm-svn: 333170
This commit is contained in:
parent
2637e5f828
commit
d0a8ad3ac0
|
@ -1500,7 +1500,7 @@ TEST_P(ASTImporterTestBase,
|
||||||
)",
|
)",
|
||||||
Lang_CXX);
|
Lang_CXX);
|
||||||
ASSERT_EQ(2u, DeclCounter<CXXRecordDecl>().match(
|
ASSERT_EQ(2u, DeclCounter<CXXRecordDecl>().match(
|
||||||
ToTU, cxxRecordDecl(hasParent(translationUnitDecl()))));
|
ToTU, cxxRecordDecl(unless(isImplicit()))));
|
||||||
|
|
||||||
Decl *FromTU = getTuDecl(
|
Decl *FromTU = getTuDecl(
|
||||||
R"(
|
R"(
|
||||||
|
@ -1515,7 +1515,7 @@ TEST_P(ASTImporterTestBase,
|
||||||
Import(FromD, Lang_CXX);
|
Import(FromD, Lang_CXX);
|
||||||
|
|
||||||
EXPECT_EQ(2u, DeclCounter<CXXRecordDecl>().match(
|
EXPECT_EQ(2u, DeclCounter<CXXRecordDecl>().match(
|
||||||
ToTU, cxxRecordDecl(hasParent(translationUnitDecl()))));
|
ToTU, cxxRecordDecl(unless(isImplicit()))));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_P(
|
TEST_P(
|
||||||
|
|
Loading…
Reference in New Issue