OpenCores
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/] [pr36765.c] - Blame information for rev 308

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

Line No. Rev Author Line
1 297 jeremybenn
int __attribute__((noinline))
2
foo(int i)
3
{
4
  int *p = __builtin_malloc (4 * sizeof(int));
5
  *p = 0;
6
  p[i] = 1;
7
  return *p;
8
}
9
extern void abort (void);
10
int main()
11
{
12
  if (foo(0) != 1)
13
    abort ();
14
  return 0;
15
}

powered by: WebSVN 2.1.0

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