redecl-10.c

来自「linux下编程用 编译软件」· C语言 代码 · 共 35 行

C
35
字号
/* Test for multiple declarations and composite types.  Check we don't   ICE with nested initializers.  *//* Origin: Joseph Myers <jsm@polyomino.org.uk> *//* { dg-do compile } *//* { dg-options "-g" } */static int w[];voidf (void){  extern int w[] = { 1, 2 }; /* { dg-error "has both" } */}int x[];voidg (void){  extern int x[] = { 3, 4, 5 }; /* { dg-error "has both" } */}static int y[];voidh (void){  extern int y[] = { 6 }; /* { dg-error "has both" } */}int z[];voidi (void){  extern int z[] = { 7 }; /* { dg-error "has both" } */}

⌨️ 快捷键说明

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