[cfe-commits] r158595 - /cfe/trunk/unittests/Tooling/ToolingTest.cpp

NAKAMURA Takumi geek4civic at gmail.com
Fri Jun 15 23:04:05 PDT 2012


Author: chapuni
Date: Sat Jun 16 01:04:05 2012
New Revision: 158595

URL: http://llvm.org/viewvc/llvm-project?rev=158595&view=rev
Log:
ToolingTest.cpp: Fix r158592, runToolOnCode.FindsNoTopLevelDeclOnEmptyCode on msvc. LangOpts.MicrosoftExt still appends "class type_info;".

Modified:
    cfe/trunk/unittests/Tooling/ToolingTest.cpp

Modified: cfe/trunk/unittests/Tooling/ToolingTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/ToolingTest.cpp?rev=158595&r1=158594&r2=158595&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/ToolingTest.cpp (original)
+++ cfe/trunk/unittests/Tooling/ToolingTest.cpp Sat Jun 16 01:04:05 2012
@@ -57,7 +57,12 @@
   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 {





More information about the cfe-commits mailing list