From: Mike Stump Date: Thu, 15 Jul 2004 02:21:04 +0000 (+0000) Subject: * gcc.dg/20020426-2.c: Improve type safety wrt unsignedness. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd9dd3eec8dc91a5943a2107b447f0e106ad0875;p=gcc.git * gcc.dg/20020426-2.c: Improve type safety wrt unsignedness. From-SVN: r84739 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b98486d19ae..5d763cc2f27 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-07-14 Mike Stump + + * gcc.dg/20020426-2.c: Improve type safety wrt unsignedness. + 2004-07-14 James E Wilson PR target/16325 diff --git a/gcc/testsuite/gcc.dg/20020426-2.c b/gcc/testsuite/gcc.dg/20020426-2.c index 18a172767a1..56a478f0f7d 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);