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/] [pr27260.c] - Rev 826
Compare with Previous | Blame | View Log
/* PR middle-end/27260 */ extern void abort (void); extern void *memset (void *, int, __SIZE_TYPE__); char buf[65]; void foo (int x) { memset (buf, x != 2 ? 1 : 0, 64); } int main (void) { int i; buf[64] = 2; for (i = 0; i < 64; i++) if (buf[i] != 0) abort (); foo (0); for (i = 0; i < 64; i++) if (buf[i] != 1) abort (); foo (2); for (i = 0; i < 64; i++) if (buf[i] != 0) abort (); if (buf[64] != 2) abort (); return 0; }