c99-mixdecl-1.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 26 行

C
26
字号
/* Test for C99 mixed declarations and code.  *//* Origin: Joseph Myers <jsm28@cam.ac.uk> *//* { dg-do run } *//* { dg-options "-std=iso9899:1999 -pedantic-errors" } */extern void abort (void);extern void exit (int);intmain (void){  int i = 0;  if (i != 0)    abort ();  i++;  if (i != 1)    abort ();  int j = i;  if (j != 1)    abort ();  struct foo { int i0; } k = { 4 };  if (k.i0 != 4)    abort ();  exit (0);}

⌨️ 快捷键说明

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