add alignment to enable store merging in strict-alignment targets
[official-gcc.git] / gcc / testsuite / g++.dg / ext / attrib60.C
blob26958cbf444975f283ad973e67ea262bcec067d2
1 // PR c++/89325
2 // { dg-do compile }
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'" }