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