From 6d01ccaf818d34cd9280322b74dbddc36e923240 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Tue, 14 Jan 2014 08:18:49 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199195 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/AST/DeclPrinterTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unittests/AST/DeclPrinterTest.cpp b/unittests/AST/DeclPrinterTest.cpp index 44fa74216b..33c51363e9 100644 --- a/unittests/AST/DeclPrinterTest.cpp +++ b/unittests/AST/DeclPrinterTest.cpp @@ -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 } -- 2.40.0