Commit a8c73de3 by Zack Weinberg

New test; for ia32 codegen bug.

Reported by Daniel Lauer <daniel@informatik.uni-bonn.de>

From-SVN: r32509
parent e6c1be7e
unsigned int buggy (unsigned int *param)
{
unsigned int accu, zero = 0, borrow;
accu = - *param;
borrow = - (accu > zero);
*param += accu;
return borrow;
}
int main (void)
{
unsigned int param = 1;
unsigned int borrow = buggy (&param);
if (param != 0)
abort ();
if (borrow + 1 != 0)
abort ();
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