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

📄 m-un-2.c

📁 this is a gcc file, you can download it and learn its usetility, for further detail please look at t
💻 C
字号:
/* { dg-do compile } *//* { dg-options "-W -Wall" } */typedef unsigned long size_t;extern void* malloc (size_t);extern void free (void*);extern void* realloc (void*, size_t);struct vtable {  void* (* _malloc) (size_t);  void (* _free) (void*);  void* (* _realloc) (void*, size_t);};struct vtable mtable = {  malloc,  free}; /* { dg-warning "missing initializer" "warning regression" { target *-*-* } {18} } */   /* { dg-warning "initialization for `mtable._realloc'" "warning regression" { target *-*-* } {18} } *//* With designated initializers, we assume you meant to leave out the   initialization of any blank fields.  */struct vtable mtable2 = {  ._malloc = malloc,  ._realloc = realloc};struct vtable mtable3 = {  ._free = free,  ._malloc = malloc,  ._realloc = realloc};

⌨️ 快捷键说明

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