* gcc.c-torture/execute/980526-3.c: New test.

From-SVN: r20109
This commit is contained in:
Catherine Moore 1998-05-27 23:15:48 +00:00 committed by Jeff Law
parent dd2b44ff26
commit ca379c1cd3
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Thu May 28 00:17:42 1998 Catherine Moore <clm@cygnus.com>
* gcc.c-torture/execute/980526-3.c: New test.
1998-05-27 Manfred Hollstein <manfred@s-direktnet.de>
* g++.old-deja/g++.jason/thunk2.C: Setup this test to be expected to

View File

@ -0,0 +1,20 @@
int compare(x, y)
unsigned int x;
unsigned int y;
{
if (x==y)
return 0;
else
return 1;
}
main()
{
unsigned int i, j, k, l;
i = 5; j = 2; k=0; l=2;
if (compare(5%(~(unsigned) 2), i%~j)
|| compare(0, k%~l))
abort();
else
exit(0);
}