PR c/81544 - attribute noreturn and warn_unused_result on the same function accepted
[official-gcc.git] / gcc / testsuite / gcc.dg / pr44964.c
blob6c252ee2616b83a3b0ec6d88f3cf0344822bd707
1 /* { dg-do compile } */
2 /* { dg-options "-fkeep-inline-functions -O" } */
4 static inline __attribute__ ((const))
5 int baz (int i)
7 return i;
10 static __attribute__ ((always_inline))
11 inline __attribute__ ((flatten))
12 void bar (void)
14 baz (0);
17 void
18 foo (void)
20 bar ();