Skip to content
Snippets Groups Projects
Commit 59226f78 authored by Alp Toker's avatar Alp Toker
Browse files

Revert "ToolingTest.cpp: Fix r158592,...

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.

llvm-svn: 198502
parent e1fab526
No related branches found
No related tags found
No related merge requests found
...@@ -60,12 +60,7 @@ TEST(runToolOnCode, FindsNoTopLevelDeclOnEmptyCode) { ...@@ -60,12 +60,7 @@ TEST(runToolOnCode, FindsNoTopLevelDeclOnEmptyCode) {
bool FoundTopLevelDecl = false; bool FoundTopLevelDecl = false;
EXPECT_TRUE(runToolOnCode( EXPECT_TRUE(runToolOnCode(
new TestAction(new FindTopLevelDeclConsumer(&FoundTopLevelDecl)), "")); new TestAction(new FindTopLevelDeclConsumer(&FoundTopLevelDecl)), ""));
#if !defined(_MSC_VER)
EXPECT_FALSE(FoundTopLevelDecl); EXPECT_FALSE(FoundTopLevelDecl);
#else
// FIXME: LangOpts.MicrosoftExt appends "class type_info;"
EXPECT_TRUE(FoundTopLevelDecl);
#endif
} }
namespace { namespace {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment