133965Sjdp/* Test for strftime format attributes: can't have first_arg_num != 0.  */
2218822Sdim/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
3218822Sdim/* { dg-do compile } */
460484Sobrien/* { dg-options "-std=gnu99 -Wformat" } */
533965Sjdp
633965Sjdp#define DONT_GNU_PROTOTYPE
7130561Sobrien#include "format.h"
833965Sjdp
9130561Sobrienextern void foo0 (const char *) __attribute__((__format__(gnu_attr___strftime__, 1, 0)));
10130561Sobrienextern void foo1 (const char *, ...) __attribute__((__format__(gnu_attr___strftime__, 1, 2))); /* { dg-error "cannot format" "strftime first_arg_num != 0" } */
11130561Sobrien