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

📄 wmissing-declarations-1.c

📁 用于进行gcc测试
💻 C
字号:
// { dg-options "-Wmissing-declarations" }void fn1() { }		// { dg-warning "no previous declaration" }namespace ns {  void fn2() { }	// { dg-warning "no previous declaration" }}namespace {  void fn3() { }}static void fn4() { }void fn5();namespace ns {  void fn6();}void fn5() { }namespace ns {  void fn6() { }}inline void fn7() { }class c {  void cfn1() { }  static void cfn2() { }  void cfn3();  static void cfn4();};void c::cfn3() { }void c::cfn4() { }static struct {  void sfn1() { }  static void sfn2() { }} s;template<typename C>void tfn1() { }template void tfn1<c>();class d { };template<> void tfn1<d>() { }

⌨️ 快捷键说明

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