summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/format/gcc_gfc-2.c
blob: f3095fa296f94f3463ed8985add492005297f714 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR c/35436 */
/* { dg-do compile } */
/* { dg-options "-Wformat" } */

typedef void locus[1]; /* { dg-error "array of void" } */

void foo(const char*, ...)
  __attribute__((__format__(__gcc_gfc__, 1, 2))); /* { dg-error "locus" } */

void bar()
{
  foo("%L", 0); /* { dg-warning "format" }  */
}