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