From: DJ Delorie Date: Wed, 24 Jun 2015 21:18:02 +0000 (-0400) Subject: * gcc.dg/torture/pr66345.c: Fix assumption about size_t type. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=efa165cd8902733f96ed6816a48f8f6bced5ea7b;p=gcc.git * gcc.dg/torture/pr66345.c: Fix assumption about size_t type. From-SVN: r224924 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 61045d38d2a..e9f747bd69c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-06-08 DJ Delorie + + * gcc.dg/torture/pr66345.c: Fix assumption about size_t type. + 2015-06-24 Alan Lawrence * gcc.target/aarch64/mgeneral-regs_3.c: New. diff --git a/gcc/testsuite/gcc.dg/torture/pr66345.c b/gcc/testsuite/gcc.dg/torture/pr66345.c index 16879872694..c33e8aaedec 100644 --- a/gcc/testsuite/gcc.dg/torture/pr66345.c +++ b/gcc/testsuite/gcc.dg/torture/pr66345.c @@ -1,6 +1,12 @@ /* { dg-do compile } */ -extern int snprintf (char *, unsigned long, const char *, ...); +#ifdef __SIZE_TYPE__ +typedef __SIZE_TYPE__ size_t; +#else +typedef unsigned int size_t; +#endif + +extern int snprintf (char *, size_t, const char *, ...); const char a[] = ""; int b; void