Commit 2dc36fe3 by Jeffrey A Law Committed by Jeff Law

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

From-SVN: r28922
parent 7759f25b
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.
......
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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment