attr-1.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 10 行
C
10 行
/* Test for strftime format attributes: can't have first_arg_num != 0. *//* Origin: Joseph Myers <jsm28@cam.ac.uk> *//* { dg-do compile } *//* { dg-options "-std=gnu99 -Wformat" } */#include "format.h"extern void foo0 (const char *) __attribute__((__format__(__strftime__, 1, 0)));extern void foo1 (const char *, ...) __attribute__((__format__(__strftime__, 1, 2))); /* { dg-error "cannot format" "strftime first_arg_num != 0" } */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?