From 39be08d4687a047f4e5e7ec028e96ec1ee1d4e7c Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Sat, 4 Jan 2014 15:58:28 +0000 Subject: [PATCH] Revert "ToolingTest.cpp: Fix r158592, runToolOnCode.FindsNoTopLevelDeclOnEmptyCode on msvc. LangOpts.MicrosoftExt still appends "class type_info;"." type_info has been made an implicitly predeclared type in r198497 and will no longer appear as a user-declared type so we can remove this old hack. This reverts commit r158595. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198502 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Tooling/ToolingTest.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/unittests/Tooling/ToolingTest.cpp b/unittests/Tooling/ToolingTest.cpp index 2c4a8a7a15..813dac9fbf 100644 --- a/unittests/Tooling/ToolingTest.cpp +++ b/unittests/Tooling/ToolingTest.cpp @@ -60,12 +60,7 @@ TEST(runToolOnCode, FindsNoTopLevelDeclOnEmptyCode) { bool FoundTopLevelDecl = false; EXPECT_TRUE(runToolOnCode( new TestAction(new FindTopLevelDeclConsumer(&FoundTopLevelDecl)), "")); -#if !defined(_MSC_VER) EXPECT_FALSE(FoundTopLevelDecl); -#else - // FIXME: LangOpts.MicrosoftExt appends "class type_info;" - EXPECT_TRUE(FoundTopLevelDecl); -#endif } namespace { -- 2.40.0