gcc/testsuite/gcc.dg/pr44964.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-fkeep-inline-functions -O" } */ |
| 3 | |
| 4 | static inline __attribute__ ((const)) |
| 5 | int baz (int i) |
| 6 | { |
| 7 | return i; |
| 8 | } |
| 9 | |
| 10 | static __attribute__ ((always_inline)) |
| 11 | inline __attribute__ ((flatten)) |
| 12 | void bar (void) |
| 13 | { |
| 14 | baz (0); |
| 15 | } |
| 16 | |
| 17 | void |
| 18 | foo (void) |
| 19 | { |
| 20 | bar (); |
| 21 | } |
| 22 |