New test; for ia32 codegen bug.
Reported by Daniel Lauer <daniel@informatik.uni-bonn.de> From-SVN: r32509
This commit is contained in:
parent
e6c1be7e7f
commit
a8c73de3a4
20
gcc/testsuite/gcc.c-torture/execute/20000313-1.c
Normal file
20
gcc/testsuite/gcc.c-torture/execute/20000313-1.c
Normal file
@ -0,0 +1,20 @@
|
||||
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 (¶m);
|
||||
|
||||
if (param != 0)
|
||||
abort ();
|
||||
if (borrow + 1 != 0)
|
||||
abort ();
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user