struct-empty-2.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 11 行
C
11 行
/* Test diagnostics for empty structures and unions. Test with -pedantic. *//* Origin: Joseph Myers <joseph@codesourcery.com> *//* { dg-do compile } *//* { dg-options "-pedantic" } */struct s0 {}; /* { dg-warning "warning: struct has no members" } */union u0 {}; /* { dg-warning "warning: union has no members" } */struct s1 { int : 1; }; /* { dg-warning "warning: struct has no named members" } */union u1 { int : 1; }; /* { dg-warning "warning: union has no named members" } */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?