diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-24 21:18:02 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-24 21:18:02 +0000 |
commit | a1c392b51038f5a1206a73577a80060d8e7b0bab (patch) | |
tree | c539964dc3493f1b6279fb7427faa57c9d4714b1 | |
parent | ffff0e9578ae4eadc569ecffaa212e72377fda34 (diff) | |
download | gcc-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/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr66345.c | 8 |
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 |