PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pr79255.c
blobbcccec0eec65b475343e96b5b6f55ac405893e50
1 /* PR bootstrap/79255 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -g -fno-toplevel-reorder -Wno-attributes" } */
5 static inline __attribute__((always_inline)) int foo (int x);
7 int
8 baz (void)
10 return foo (3) + foo (6) + foo (9);
13 static inline __attribute__((always_inline)) int
14 foo (int x)
16 auto inline int __attribute__((noinline)) bar (int x)
18 return x + 3;
20 return bar (x) + bar (x + 2);