1 /* Test inline functions declared in inner scopes. Bugs 88720 and 88726. */ 2 /* { dg-do compile } */ 3 /* { dg-options "-fgnu89-inline" } */ 4 5 void inline_1(void)6inline_1 (void) 7 { 8 } 9 10 void inline_2(void)11inline_2 (void) 12 { 13 } 14 15 static void inline_static_1(void)16inline_static_1 (void) 17 { 18 } 19 20 static void inline_static_2(void)21inline_static_2 (void) 22 { 23 } 24 25 static void inline_static_3 (void); 26 static void inline_static_4 (void); 27 28 static void test(void)29test (void) 30 { 31 inline void inline_1 (void); 32 extern inline void inline_2 (void); 33 inline void inline_3 (void); 34 extern inline void inline_4 (void); 35 inline void inline_static_1 (void); 36 extern inline void inline_static_2 (void); 37 inline void inline_static_3 (void); 38 extern inline void inline_static_4 (void); 39 } 40 41 void inline_3(void)42inline_3 (void) 43 { 44 } 45 46 void inline_4(void)47inline_4 (void) 48 { 49 } 50