aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/format/ms_no-y2k-1.c
blob: aed760aab5f9521ddbe5e95af66e66b1764c382a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Test for warnings for Y2K problems not being on by default.  */
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
/* { dg-do compile { target { *-*-mingw* } } } */
/* { dg-options "-std=gnu99 -Wformat" } */

#define USE_SYSTEM_FORMATS
#include "format.h"

void
foo (char *s, size_t m, const struct tm *tp)
{
  strftime (s, m, "%y%c%x", tp);
}