URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr51949.c] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ typedef long unsigned int size_t; extern __attribute__ ((malloc)) void *mem_alloc(size_t); void *mem_alloc(size_t amount) { void *q = __builtin_malloc (amount); if (!q) { __builtin_printf("malloc"); __builtin_exit(255); } } void mem_realloc() { mem_alloc(1); } void put_env_var() { mem_alloc(1); }
Go to most recent revision | Compare with Previous | Blame | View Log