1 /* Test for warnings for Y2K problems being disabled by -Wno-format-y2k. */
2 /* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3 /* { dg-do compile } */
4 /* { dg-options "-std=gnu99 -Wformat -Wno-format-y2k" } */
6 typedef __SIZE_TYPE__ size_t;
10 extern size_t strftime (char *, size_t, const char *, const struct tm *);
13 foo (char *s, size_t m, const struct tm *tp)
15 strftime (s, m, "%y%c%x", tp);