summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-24 21:18:02 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2015-06-24 21:18:02 +0000
commita1c392b51038f5a1206a73577a80060d8e7b0bab (patch)
treec539964dc3493f1b6279fb7427faa57c9d4714b1
parentffff0e9578ae4eadc569ecffaa212e72377fda34 (diff)
downloadgcc-a1c392b51038f5a1206a73577a80060d8e7b0bab.tar.gz
* gcc.dg/torture/pr66345.c: Fix assumption about size_t type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224924 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr66345.c8
2 files changed, 11 insertions, 1 deletions
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 <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.
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