OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr51949.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
 
3
typedef long unsigned int size_t;
4
extern __attribute__ ((malloc)) void *mem_alloc(size_t);
5
void *mem_alloc(size_t amount)
6
{
7
  void *q = __builtin_malloc (amount);
8
  if (!q) {
9
      __builtin_printf("malloc");
10
      __builtin_exit(255);
11
  }
12
}
13
void mem_realloc()
14
{
15
  mem_alloc(1);
16
}
17
void put_env_var()
18
{
19
  mem_alloc(1);
20
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.