⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 struct-semi-3.c

📁 用于进行gcc测试
💻 C
字号:
/* Test diagnostics for missing and extra semicolons in structures.   Test with -pedantic-errors.  *//* Origin: Joseph Myers <joseph@codesourcery.com> *//* { dg-do compile } *//* { dg-options "-pedantic-errors" } */struct s0 { ; }; /* { dg-error "extra semicolon in struct or union specified" } *//* { dg-error "struct has no members" "empty" { target *-*-* } 7 } */struct s1 {  int a;  ; /* { dg-error "extra semicolon in struct or union specified" } */  int b;};struct s2 {  ; /* { dg-error "extra semicolon in struct or union specified" } */  int c}; /* { dg-error "no semicolon at end of struct or union" } */struct s3 {  int d}; /* { dg-error "no semicolon at end of struct or union" } */

⌨️ 快捷键说明

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