forked from OSchip/llvm-project
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
This commit is contained in:
parent
e1fab52688
commit
59226f7811
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue