anon-struct-7.c

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

C
11
字号
/* Test diagnostics for structure member with no type specifier or   declarator.  Test with -pedantic.  *//* Origin: Joseph Myers <joseph@codesourcery.com> *//* { dg-do compile } *//* { dg-options "-pedantic" } */struct s {  int a;  const; /* { dg-warning "ISO C forbids member declarations with no members" } */};

⌨️ 快捷键说明

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