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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 688 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.