summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST/ASTImporterTest.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-05-24 10:49:38 +0000
committerHans Wennborg <hans@hanshq.net>2018-05-24 10:49:38 +0000
commitd0a8ad3ac047bc6badaaf8796eb6c8447c4dbaf9 (patch)
tree89506dd220d8980c49ca70e111a04516d0659245 /clang/unittests/AST/ASTImporterTest.cpp
parent2637e5f8285fef34b09996b6c358bdc3ed513adb (diff)
downloadbcm5719-llvm-d0a8ad3ac047bc6badaaf8796eb6c8447c4dbaf9.tar.gz
bcm5719-llvm-d0a8ad3ac047bc6badaaf8796eb6c8447c4dbaf9.zip
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
Diffstat (limited to 'clang/unittests/AST/ASTImporterTest.cpp')
-rw-r--r--clang/unittests/AST/ASTImporterTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/AST/ASTImporterTest.cpp b/clang/unittests/AST/ASTImporterTest.cpp
index 8080d54346d..c95e8fdaf80 100644
--- a/clang/unittests/AST/ASTImporterTest.cpp
+++ b/clang/unittests/AST/ASTImporterTest.cpp
@@ -1500,7 +1500,7 @@ TEST_P(ASTImporterTestBase,
)",
Lang_CXX);
ASSERT_EQ(2u, DeclCounter<CXXRecordDecl>().match(
- ToTU, cxxRecordDecl(hasParent(translationUnitDecl()))));
+ ToTU, cxxRecordDecl(unless(isImplicit()))));
Decl *FromTU = getTuDecl(
R"(
@@ -1515,7 +1515,7 @@ TEST_P(ASTImporterTestBase,
Import(FromD, Lang_CXX);
EXPECT_EQ(2u, DeclCounter<CXXRecordDecl>().match(
- ToTU, cxxRecordDecl(hasParent(translationUnitDecl()))));
+ ToTU, cxxRecordDecl(unless(isImplicit()))));
}
TEST_P(
OpenPOWER on IntegriCloud