test_ok(int a,int b)1static int test_ok(int a, int b) 2 { 3 int nested_ok(int i) 4 { 5 return i * 2; 6 } 7 return nested_ok(b); 8 } 9 test_ko(int a,int b)10static int test_ko(int a, int b) 11 { 12 int nested_ko(int i) 13 { 14 return i * 2 + a; 15 } 16 return nested_ko(b); 17 } 18 test_inline(int a,int b)19static int test_inline(int a, int b) 20 { 21 inline int nested(int i) 22 { 23 return i * 2; 24 } 25 return nested(b); 26 } 27 test_inline_ko(int a,int b)28static int test_inline_ko(int a, int b) 29 { 30 inline int nested(int i) 31 { 32 return i * 2 + a; 33 } 34 return nested(b); 35 } 36 37 /* 38 * check-name: nested-functions 39 * 40 * check-error-start 41 nested-functions.c:32:32: warning: unreplaced symbol 'a' 42 * check-error-end 43 */ 44