gcc_gfc-2.c

来自「用于进行gcc测试」· C语言 代码 · 共 14 行

C
14
字号
/* 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" }  */}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?