ext-glob.c

来自「gcc3.2.1源代码」· C语言 代码 · 共 20 行

C
20
字号
/* Test for the warning about external functions with non-global   types.  In -traditional mode, these functions are globally visible   even if declared in an inner scope, so their return types should   also be visible.  *//* { dg-do compile } *//* { dg-options -traditional } *//* { dg-warning "-traditional is deprecated" "deprecation warning" { target *-*-* } 0 } */intmain (){  struct foo { int a, b; };  extern struct foo *bar();  /* { dg-warning "type of external" "good warn" } */  extern int baz();	     /* { dg-bogus   "type of external" "bad warn"  } */  return 0;}

⌨️ 快捷键说明

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