0026-numargs.c (342B)
1 /* 2 PATTERN: 3 0026-numargs.c:18: error: incompatible type for argument 1 in function call 4 0026-numargs.c:19: error: incompatible type for argument 2 in function call 5 0026-numargs.c:20: error: too many arguments in function call 6 . 7 */ 8 9 int 10 fn(int a, int b) 11 { 12 return a+b; 13 } 14 15 int 16 main(void) 17 { 18 fn("a", 1); 19 fn(1, "a"); 20 fn(1, 2, 3); 21 22 return 0; 23 }