Author: Stephen Kelly
Date: 2020-11-18T12:42:07Z
New Revision: bcaa19894994f1363a10c082541efb67435399d1

URL: 
https://github.com/llvm/llvm-project/commit/bcaa19894994f1363a10c082541efb67435399d1
DIFF: 
https://github.com/llvm/llvm-project/commit/bcaa19894994f1363a10c082541efb67435399d1.diff

LOG: Remove unportable test

The default content of translation unit varies too much between
platforms.

Added: 
    

Modified: 
    clang/unittests/AST/ASTTraverserTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/AST/ASTTraverserTest.cpp 
b/clang/unittests/AST/ASTTraverserTest.cpp
index e61069ae61d6..184bddce7f2e 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


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to