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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr49544.c] - Rev 713

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

/* PR debug/49544 */
/* { dg-do compile } */
/* { dg-options "-g -O2" } */
/* { dg-require-effective-target ptr32plus } */
 
__extension__ typedef __PTRDIFF_TYPE__ ptr_t;
 
int baz (int, int, void *);
 
static inline __attribute__ ((always_inline)) long
foo (int x, int y, void *z)
{
  if (y < 0)
    return baz (x, y, z);
  return 0;
}
 
long
bar (long x, long y, long z)
{
  return foo (x, y, (void *) (ptr_t) z);
}
 

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

powered by: WebSVN 2.1.0

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