990106-2.c: Update to work on targets with 16bit ints.

Fri Feb 12 11:04:35 1999  Jeffrey A Law  (law@cygnus.com)
        * gcc.c-torture/990106-2.c: Update to work on targets with 16bit
        ints.

From-SVN: r25166
This commit is contained in:
Jeffrey A Law 1999-02-12 10:06:42 +00:00 committed by Jeff Law
parent 826947c572
commit 354a5b0721
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Feb 12 11:04:35 1999 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/990106-2.c: Update to work on targets with 16bit
ints.
1999-02-11 Nick Clifton <nickc@cygnus.com>
* lib/chill.exp: Fix typo: doesn'timeout -> doesn't

View File

@ -13,7 +13,8 @@ int main(int argc, char *argv[])
unsigned x = 1234;
unsigned y = calc_mp(x);
if (y != 680)
if ((sizeof (y) == 4 && y != 680)
|| (sizeof (y) == 2 && y != 134))
abort ();
exit (0);
}