redecl-8.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 24 行

C
24
字号
/* Test for multiple declarations and composite types.  Diagnosis of   completion incompatible with implicit initializer.  *//* Origin: Joseph Myers <jsm@polyomino.org.uk> *//* { dg-do compile } *//* { dg-options "-g" } */static int x[];voidf (void){  extern int x[2]; /* { dg-error "completed incompatibly" } */}/* The following is OK.  */static int y[];voidg (void){  extern int y[1];}

⌨️ 快捷键说明

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