* gcc.dg/torture/pr66345.c: Fix assumption about size_t type.
authorDJ Delorie <dj@redhat.com>
Wed, 24 Jun 2015 21:18:02 +0000 (17:18 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Wed, 24 Jun 2015 21:18:02 +0000 (17:18 -0400)
From-SVN: r224924

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr66345.c

index 61045d38d2a5a0d5f948ea7c672dca3f9b1694a5..e9f747bd69c7cbc151aacf178fc346c5833f82da 100644 (file)
@@ -1,3 +1,7 @@
+2015-06-08  DJ Delorie  <dj@redhat.com>
+
+       * gcc.dg/torture/pr66345.c: Fix assumption about size_t type.
+
 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
 
        * gcc.target/aarch64/mgeneral-regs_3.c: New.
index 16879872694e2bfe74425e8c37aa131f4ec224d6..c33e8aaedec2d34e6e7f113676478f35285dec0f 100644 (file)
@@ -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