1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -Winline --param large-stack-frame=10 --param large-stack-frame-growth=2 -fgnu89-inline" } */ 3 4 int a,b; 5 void test(char *); 6 static inline aa(void)7int aa (void) 8 { 9 char t[10]; 10 test(t); 11 } 12 static inline bb(void)13int bb (void) /* { dg-warning "large-stack-frame" } */ 14 { 15 char t[100]; 16 test(t); 17 } 18 19 int t()20t() 21 { 22 if (a) 23 aa(); 24 if (b) 25 bb(); /* { dg-message "called from here" } */ 26 } 27