r199195 - Switch to ssize_t from size_t to unbreak windows builders.
David Majnemer
david.majnemer at gmail.com
Tue Jan 14 00:18:49 PST 2014
Author: majnemer
Date: Tue Jan 14 02:18:49 2014
New Revision: 199195
URL: http://llvm.org/viewvc/llvm-project?rev=199195&view=rev
Log:
Switch to ssize_t from size_t to unbreak windows builders.
Builders that have -fms-compatibility on by default define size_t implicitly.
Tests that provide conflicting definitions would cause unintended failures.
Modified:
cfe/trunk/unittests/AST/DeclPrinterTest.cpp
Modified: cfe/trunk/unittests/AST/DeclPrinterTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/AST/DeclPrinterTest.cpp?rev=199195&r1=199194&r2=199195&view=diff
==============================================================================
--- cfe/trunk/unittests/AST/DeclPrinterTest.cpp (original)
+++ cfe/trunk/unittests/AST/DeclPrinterTest.cpp Tue Jan 14 02:18:49 2014
@@ -370,11 +370,11 @@ TEST(DeclPrinter, TestFunctionDecl10) {
TEST(DeclPrinter, TestFunctionDecl11) {
ASSERT_TRUE(PrintedDeclCXX98Matches(
- "typedef long size_t;"
+ "typedef long ssize_t;"
"typedef int *pInt;"
- "void A(int a, pInt b, size_t c);",
+ "void A(int a, pInt b, ssize_t c);",
"A",
- "void A(int a, pInt b, size_t c)"));
+ "void A(int a, pInt b, ssize_t c)"));
// Should be: with semicolon
}
More information about the cfe-commits
mailing list