Mercurial > hg > CbC > CbC_gcc
view 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 |
line wrap: on
line source
/* 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" } */ }