noreturn-4.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 11 行
C
11 行
/* Check for "noreturn" warning in main. *//* { dg-do compile } *//* { dg-options "-O2 -Wmissing-noreturn -ffreestanding" } */extern void exit (int) __attribute__ ((__noreturn__));intmain (void){ exit (0);} /* { dg-warning "warning: function might be possible candidate for attribute `noreturn'" "warn for main" } */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?