summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/ToolingTest.cpp
diff options
context:
space:
mode:
authorMeador Inge <meadori@codesourcery.com>2012-06-16 03:34:49 +0000
committerMeador Inge <meadori@codesourcery.com>2012-06-16 03:34:49 +0000
commit5d3fb22baceef03641b8e051cdbd497ee293bbaf (patch)
tree29440807b28521bc43e1c8cec82eecc7674c6dcb /clang/unittests/Tooling/ToolingTest.cpp
parent93ee5ca805f9d51c13dc613a07048ea83728fd97 (diff)
downloadbcm5719-llvm-5d3fb22baceef03641b8e051cdbd497ee293bbaf.tar.gz
bcm5719-llvm-5d3fb22baceef03641b8e051cdbd497ee293bbaf.zip
Explicitly build __builtin_va_list.
The target specific __builtin_va_list types are now explicitly built instead of injecting strings into the preprocessor input. llvm-svn: 158592
Diffstat (limited to 'clang/unittests/Tooling/ToolingTest.cpp')
-rw-r--r--clang/unittests/Tooling/ToolingTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Tooling/ToolingTest.cpp b/clang/unittests/Tooling/ToolingTest.cpp
index 9122786b553..526aa8059a4 100644
--- a/clang/unittests/Tooling/ToolingTest.cpp
+++ b/clang/unittests/Tooling/ToolingTest.cpp
@@ -53,11 +53,11 @@ class FindTopLevelDeclConsumer : public clang::ASTConsumer {
};
} // end namespace
-TEST(runToolOnCode, FindsTopLevelDeclOnEmptyCode) {
+TEST(runToolOnCode, FindsNoTopLevelDeclOnEmptyCode) {
bool FoundTopLevelDecl = false;
EXPECT_TRUE(runToolOnCode(
new TestAction(new FindTopLevelDeclConsumer(&FoundTopLevelDecl)), ""));
- EXPECT_TRUE(FoundTopLevelDecl);
+ EXPECT_FALSE(FoundTopLevelDecl);
}
namespace {
OpenPOWER on IntegriCloud