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

📄 20020213-1.c

📁 this is a gcc file, you can download it and learn its usetility, for further detail please look at t
💻 C
字号:
/* PR c/5503   Test whether argument checking is done for fputs, bzero and bcmp.  */typedef struct { int i; } FILE;typedef __SIZE_TYPE__ size_t;int fputs (const char *, FILE *);void bzero (void *, size_t);int bcmp (const void *, const void *, size_t);char buf[32];FILE *f;int main (){  fputs ("foo");		/* { dg-error "too few" } */  fputs ("foo", "bar", "baz");	/* { dg-error "too many" } */  fputs (21, 43);  bzero (buf);			/* { dg-error "too few" } */  bzero (21);			/* { dg-error "too few" } */  bcmp (buf, buf + 16);		/* { dg-error "too few" } */  bcmp (21);			/* { dg-error "too few" } */  fputs ("foo", f);  bzero (buf, 32);  bcmp (buf, buf + 16, 16);  return 0;}/* { dg-warning "passing arg 2 of" "2nd incompatible" { target *-*-* } 15 } *//* { dg-warning "passing arg 1 of" "1st incompatible" { target *-*-* } 16 } *//* { dg-warning "passing arg 2 of" "2nd incompatible" { target *-*-* } 16 } *//* { dg-warning "passing arg 1 of" "1st incompatible" { target *-*-* } 18 } *//* { dg-warning "passing arg 1 of" "1st incompatible" { target *-*-* } 20 } */

⌨️ 快捷键说明

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