URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20000313-1.c] - Rev 826
Compare with Previous | Blame | View Log
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; }