strict-prototypes1.c 475 B

123456789101112131415
  1. extern void func0();
  2. extern void func1(), func2();
  3. /*
  4. * check-name: strict-prototypes enabled
  5. * check-command: sparse -Wstrict-prototypes $file
  6. * check-known-to-fail
  7. *
  8. * check-error-start
  9. strict-prototypes1.c:1:18: warning: non-ANSI function declaration of function 'func0'
  10. strict-prototypes1.c:2:18: warning: non-ANSI function declaration of function 'func1'
  11. strict-prototypes1.c:2:27: warning: non-ANSI function declaration of function 'func2'
  12. * check-error-end
  13. */