From bcaa19894994f1363a10c082541efb67435399d1 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 18 Nov 2020 12:40:52 +0000 Subject: [PATCH] Remove unportable test The default content of translation unit varies too much between platforms. --- clang/unittests/AST/ASTTraverserTest.cpp | 46 -------------------------------- 1 file changed, 46 deletions(-) diff --git a/clang/unittests/AST/ASTTraverserTest.cpp b/clang/unittests/AST/ASTTraverserTest.cpp index e61069a..184bddce 100644 --- a/clang/unittests/AST/ASTTraverserTest.cpp +++ b/clang/unittests/AST/ASTTraverserTest.cpp @@ -1068,52 +1068,6 @@ int i = 0; )cpp"); const auto *TUDecl = AST->getASTContext().getTranslationUnitDecl(); -#if _WIN32 - EXPECT_EQ(dumpASTString(TK_AsIs, TUDecl), - R"cpp( -TranslationUnitDecl -|-CXXRecordDecl '_GUID' -| `-TypeVisibilityAttr -|-TypedefDecl '__int128_t' -| `-BuiltinType -|-TypedefDecl '__uint128_t' -| `-BuiltinType -|-TypedefDecl '__NSConstantString' -| `-RecordType -|-CXXRecordDecl 'type_info' -| `-TypeVisibilityAttr -|-TypedefDecl 'size_t' -| `-BuiltinType -|-TypedefDecl '__builtin_ms_va_list' -| `-PointerType -| `-BuiltinType -|-TypedefDecl '__builtin_va_list' -| `-PointerType -| `-BuiltinType -`-VarDecl 'i' - `-IntegerLiteral -)cpp"); -#else - EXPECT_EQ(dumpASTString(TK_AsIs, TUDecl), - R"cpp( -TranslationUnitDecl -|-TypedefDecl '__int128_t' -| `-BuiltinType -|-TypedefDecl '__uint128_t' -| `-BuiltinType -|-TypedefDecl '__NSConstantString' -| `-RecordType -|-TypedefDecl '__builtin_ms_va_list' -| `-PointerType -| `-BuiltinType -|-TypedefDecl '__builtin_va_list' -| `-ConstantArrayType -| `-RecordType -`-VarDecl 'i' - `-IntegerLiteral -)cpp"); -#endif - EXPECT_EQ(dumpASTString(TK_IgnoreUnlessSpelledInSource, TUDecl), R"cpp( TranslationUnitDecl -- 2.7.4