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

📄 builtin-types-compatible-p.c

📁 this is a gcc file, you can download it and learn its usetility, for further detail please look at t
💻 C
字号:
int i;double d;/* Make sure we return a constant.  */float rootbeer[__builtin_types_compatible_p (int, typeof(i))];typedef enum { hot, dog, poo, bear } dingos;typedef enum { janette, laura, amanda } cranberry;typedef float same1;typedef float same2;int main (void);int main (void){  /* Compatible types.  */  if (!(__builtin_types_compatible_p (int, const int)	&& __builtin_types_compatible_p (typeof (hot), int)	&& __builtin_types_compatible_p (typeof (hot), typeof (laura))	&& __builtin_types_compatible_p (int[5], int[])	&& __builtin_types_compatible_p (typeof (dingos), typeof (cranberry))	&& __builtin_types_compatible_p (same1, same2)))    abort ();  /* Incompatible types.  */  if (__builtin_types_compatible_p (char *, int)      || __builtin_types_compatible_p (char *, const char *)      || __builtin_types_compatible_p (long double, double)      || __builtin_types_compatible_p (typeof (i), typeof (d))      || __builtin_types_compatible_p (char, int)      || __builtin_types_compatible_p (char *, char **))    abort ();  exit (0);}

⌨️ 快捷键说明

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