check_access-store.c 354 B

12345678910111213141516171819202122
  1. extern int a[1];
  2. static int r(void)
  3. {
  4. return a[1];
  5. }
  6. static void w(void)
  7. {
  8. a[1] = 2;
  9. }
  10. /*
  11. * check-name: check_access-store
  12. * check-known-to-fail
  13. *
  14. * check-error-start
  15. check_access-store.c:5:17: warning: invalid access past the end of 'a' (4 4)
  16. check_access-store.c:10:17: warning: invalid access past the end of 'a' (4 4)
  17. * check-error-end
  18. */