storage-struct-member.c 385 B

123456789101112131415161718192021
  1. int foo(a)
  2. register int a;
  3. {
  4. return a;
  5. }
  6. struct s {
  7. register int a;
  8. };
  9. /*
  10. * check-name: storage in struct member
  11. * check-command: sparse -Wno-decl $file
  12. *
  13. * check-known-to-fail
  14. * check-error-start
  15. storage-struct-member.c:2:9: warning: non-ANSI definition of function 'foo'
  16. storage-struct-member.c:8:9: error: storage specifier in structure definition'
  17. * check-error-end
  18. */