aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attrib60.C
blob: 26958cbf444975f283ad973e67ea262bcec067d2 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/89325
// { dg-do compile }
// { dg-options "-Wattributes" }

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