1 #ifndef _T_H_ 2 #define _T_H_ 3 4 extern int some_val; 5 6 namespace NS { 7 class C { 8 void method_decl(); method_def1()9 int method_def1() { ++some_val; return undef_val1; } 10 inline int method_def2(); 11 }; 12 } 13 method_def2()14inline int NS::C::method_def2() { 15 ++some_val; return undef_val2; 16 } 17 foo1()18static inline int foo1() { 19 ++some_val; return undef_val3; 20 } 21 22 #ifdef BLAH 23 foo2()24static inline int foo2() { 25 ++some_val; return undef_val4; 26 } 27 28 #endif 29 30 #endif 31