diff --git a/lib/roken/strpftime-test.c b/lib/roken/strpftime-test.c index 528b6727e..bad4302bb 100644 --- a/lib/roken/strpftime-test.c +++ b/lib/roken/strpftime-test.c @@ -279,6 +279,15 @@ main(int argc, char **argv) } } } + { + struct tm tm; + memset(&tm, 0, sizeof(tm)); + strptime ("200505", "%Y%m", &tm); + if (tm.tm_year != 105) + ++ret; + if (tm.tm_mon != 4) + ++ret; + } if (ret) { printf ("%d errors\n", ret); return 1;