aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2004-07-15 02:21:04 +0000
committerMike Stump <mrs@gcc.gnu.org>2004-07-15 02:21:04 +0000
commitcd9dd3eec8dc91a5943a2107b447f0e106ad0875 (patch)
tree1fe82188466ab4665e55ed9fb6ef29918daf2de7 /gcc/testsuite/gcc.dg
parent951120eabf4013632a677fdab9f145806c37ddcc (diff)
downloadgcc-cd9dd3eec8dc91a5943a2107b447f0e106ad0875.zip
gcc-cd9dd3eec8dc91a5943a2107b447f0e106ad0875.tar.gz
gcc-cd9dd3eec8dc91a5943a2107b447f0e106ad0875.tar.bz2
* gcc.dg/20020426-2.c: Improve type safety wrt unsignedness.
From-SVN: r84739
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/20020426-2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/20020426-2.c b/gcc/testsuite/gcc.dg/20020426-2.c
index 18a1727..56a478f 100644
--- a/gcc/testsuite/gcc.dg/20020426-2.c
+++ b/gcc/testsuite/gcc.dg/20020426-2.c
@@ -160,14 +160,14 @@ foo (unsigned int *b, unsigned int n, unsigned int s, const unsigned int *d,
return y != 0 && g != 1 ? (-5) : 0;
}
-int a[19] = { 3, 4, 0, 2, 2, [17] = 3, 3 };
-int d[19];
+unsigned int a[19] = { 3, 4, 0, 2, 2, [17] = 3, 3 };
+unsigned int d[19];
A h[1440];
int
main (void)
{
- int b = 0, c = 0;
+ unsigned int b = 0, c = 0;
A *e = 0;
foo (a, 19, 19, 0, 0, &e, &b, h, &c, d);
exit (0);