diff options
author | Hans Wennborg <hans@hanshq.net> | 2018-05-24 10:49:38 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2018-05-24 10:49:38 +0000 |
commit | d0a8ad3ac047bc6badaaf8796eb6c8447c4dbaf9 (patch) | |
tree | 89506dd220d8980c49ca70e111a04516d0659245 /clang/unittests/AST/ASTImporterTest.cpp | |
parent | 2637e5f8285fef34b09996b6c358bdc3ed513adb (diff) | |
download | bcm5719-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.cpp | 4 |
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( |