mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-10 18:55:36 +08:00
* gcc.c-torture/execute/980526-3.c: New test.
From-SVN: r20109
This commit is contained in:
parent
dd2b44ff26
commit
ca379c1cd3
@ -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
|
||||
|
20
gcc/testsuite/gcc.c-torture/execute/980526-3.c
Normal file
20
gcc/testsuite/gcc.c-torture/execute/980526-3.c
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user