1 /* 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
foo(int x,int y,void * z)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
bar(long x,long y,long z)19 bar (long x, long y, long z)
20 {
21 return foo (x, y, (void *) (ptr_t) z);
22 }
23