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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr49544.c] - Blame information for rev 753

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR debug/49544 */
2
/* { dg-do compile } */
3
/* { dg-options "-g -O2" } */
4
/* { dg-require-effective-target ptr32plus } */
5
 
6
__extension__ typedef __PTRDIFF_TYPE__ ptr_t;
7
 
8
int baz (int, int, void *);
9
 
10
static inline __attribute__ ((always_inline)) long
11
foo (int x, int y, void *z)
12
{
13
  if (y < 0)
14
    return baz (x, y, z);
15
  return 0;
16
}
17
 
18
long
19
bar (long x, long y, long z)
20
{
21
  return foo (x, y, (void *) (ptr_t) z);
22
}

powered by: WebSVN 2.1.0

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