]> granicus.if.org Git - clang/commitdiff
Revert "ToolingTest.cpp: Fix r158592, runToolOnCode.FindsNoTopLevelDeclOnEmptyCode...
authorAlp Toker <alp@nuanti.com>
Sat, 4 Jan 2014 15:58:28 +0000 (15:58 +0000)
committerAlp Toker <alp@nuanti.com>
Sat, 4 Jan 2014 15:58:28 +0000 (15:58 +0000)
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

index 2c4a8a7a15657d4b5ac61e867331dd88a6661ecb..813dac9fbf832ca0a3f302fd15e0e96a9d358267 100644 (file)
@@ -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 {