comparison gcc/testsuite/gcc.dg/format/gcc_gfc-2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* PR c/35436 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wformat" } */
4
5 typedef void locus[1]; /* { dg-error "array of void" } */
6
7 void foo(const char*, ...)
8 __attribute__((__format__(__gcc_gfc__, 1, 2))); /* { dg-error "locus" } */
9
10 void bar()
11 {
12 foo("%L", 0); /* { dg-warning "format" } */
13 }