scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

0019-kr_names.c (311B)


      1 /*
      2 PATTERN:
      3 0019-kr_names.c:9: warning: parameter names (without types) in function declaration
      4 0019-kr_names.c:13: warning: type of 'a' defaults to int
      5 0019-kr_names.c:13: warning: type of 'c' defaults to int
      6 .
      7 */
      8 
      9 int f(a,b);
     10 
     11 int
     12 f(a,b,c) char b;
     13 {
     14 	return a - c + b;
     15 }
     16 
     17 int
     18 main(void)
     19 {
     20 	return f(1,0,1);
     21 }