diff options
author | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-24 12:55:37 +0000 |
---|---|---|
committer | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-24 12:55:37 +0000 |
commit | 18c9f2eabf7b252a792c15c0ba150710a1c9c064 (patch) | |
tree | 24f8bf8ba045a7e82713a13f9dfc25a3b780732b /gcc/testsuite/gcc.dg/20050922-1.c | |
parent | ea37f786980deb2568b5ba6ea92f21666956316f (diff) | |
download | gcc-18c9f2eabf7b252a792c15c0ba150710a1c9c064.tar.gz |
2005-10-24 Paul Brook <paul@codesourcery.com>
PR 24107
* gcc.dg/20050922-1.c: Provide definition of uint32_t without using
stdint.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105847 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20050922-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20050922-1.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/20050922-1.c b/gcc/testsuite/gcc.dg/20050922-1.c index cecb98a1f54..ed5a3c63e9d 100644 --- a/gcc/testsuite/gcc.dg/20050922-1.c +++ b/gcc/testsuite/gcc.dg/20050922-1.c @@ -3,11 +3,16 @@ /* { dg-do run } */ /* { dg-options "-O1 -std=c99" } */ -/* { dg-skip-if "" { *-*-solaris2.5.1 *-*-solaris2.[5-9] } "*" "" } */ -#include <stdint.h> +#include <stdlib.h> -extern void abort (void); +#if __INT_MAX__ == 2147483647 +typedef unsigned int uint32_t; +#elif __LONG_MAX__ == 2147483647 +typedef unsigned long uint32_t; +#else +#error unable to find 32-bit integer type +#endif uint32_t f (uint32_t *S, int j) |