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

📄 redecl-4.c

📁 linux下编程用 编译软件
💻 C
字号:
/* Test for multiple declarations and composite types, with built-in   functions.  *//* Origin: Joseph Myers <jsm@polyomino.org.uk> *//* { dg-do compile } *//* { dg-options "-std=c89 -Wformat -g" } */voidf (void){  int printf;  int strcmp;  {    int printf (const char *, ...);    int strcmp ();    /* Should get format warnings even though the built-in declaration       isn't "visible".  */    printf ("%s", 1); /* { dg-warning "format" } */    /* The type of strcmp here should have no prototype.  */    if (0)      strcmp (1);    /* Likewise, implicitly declared memcmp.  */    if (0)      memcmp (1);  }}/* Should still diagnose incompatible prototype for strcmp.  */int strcmp (void); /* { dg-error "conflict" } */

⌨️ 快捷键说明

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