PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / pr49544.c
blob52f79dd7f8e3f0d3369147c682d953fe550cb46f
1 /* PR debug/49544 */
2 /* { dg-do compile } */
3 /* { dg-options "-g -O2" } */
4 /* { dg-require-effective-target ptr32plus } */
6 __extension__ typedef __PTRDIFF_TYPE__ ptr_t;
8 int baz (int, int, void *);
10 static inline __attribute__ ((always_inline)) long
11 foo (int x, int y, void *z)
13 if (y < 0)
14 return baz (x, y, z);
15 return 0;
18 long
19 bar (long x, long y, long z)
21 return foo (x, y, (void *) (ptr_t) z);