]> granicus.if.org Git - clang/commitdiff
Switch to ssize_t from size_t to unbreak windows builders.
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 14 Jan 2014 08:18:49 +0000 (08:18 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 14 Jan 2014 08:18:49 +0000 (08:18 +0000)
Builders that have -fms-compatibility on by default define size_t implicitly.
Tests that provide conflicting definitions would cause unintended failures.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199195 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/AST/DeclPrinterTest.cpp

index 44fa74216b5983cc923c89cbe1eb4154226c6639..33c51363e9d05127e8c929b55d916f56f5b859f4 100644 (file)
@@ -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
 }