* gcc.c-torture/execute/990827-1.c: New test.

From-SVN: r28922
This commit is contained in:
Jeffrey A Law 1999-08-27 07:24:32 +00:00 committed by Jeff Law
parent 7759f25bfb
commit 2dc36fe3a7
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Fri Aug 27 01:24:16 1999 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/990827-1.c: New test.
1999-08-26 Craig Burley <craig@jcb-sc.com>
* g77.f-torture/noncompile/19990826-4.f: New test.

View File

@ -0,0 +1,21 @@
unsigned test(unsigned one , unsigned bit)
{
unsigned val= bit & 1;
unsigned zero= one >> 1;
val++;
return zero + ( val>> 1 );
}
int main()
{
if ((test 1,0) != 0)
abort ();
if ((test 1,1) != 1)
abort ();
if ((test 1,65535) != 1)
abort ();
exit (0);
return 0;
}