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

📄 return-type-2.c

📁 linux下编程用 编译软件
💻 C
字号:
/* Bogus warnings claiming we fall off the end of a non-void function.   By Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/27/2000.  *//* { dg-do compile } *//* { dg-options "-O2 -Wreturn-type" } */extern void abort (void) __attribute__ ((__noreturn__));intfoo1 (int i){  if (i)    return i;  abort ();} /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */__inline__ intfoo2 (int i){  if (i)    return i;  abort ();} /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */static intfoo3 (int i){  if (i)    return i;  abort ();} /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */static __inline__ intfoo4 (int i){  if (i)    return i;  abort ();} /* { dg-bogus "control reaches end of non-void function" "warning for falling off end of non-void function" } */int bar (int i){  return foo1 (i) + foo2 (i) + foo3 (i) + foo4 (i);}

⌨️ 快捷键说明

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