3 // { dg-options "-Wattributes" }
5 __attribute__((noinline)) void foo (int) {} // { dg-bogus "previous definition" }
6 inline void foo (long); // { dg-bogus "inline declaration of '\[^\n\r]*' follows declaration with attribute 'noinline'" }
7 inline void foo (long) {}
8 __attribute__((noinline)) void bar (int) {} // { dg-message "previous definition" }
9 inline void bar (int); // { dg-warning "inline declaration of '\[^\n\r]*' follows declaration with attribute 'noinline'" }