arm2.c

来自「用于进行gcc测试」· C语言 代码 · 共 20 行

C
20
字号
// { dg-do assemble  }// GROUPS passed ARM-compliance// ARM 9.4 ``There cannot be a static and a nonstatic member function//	     with the same name and the same argument types.''//// The trick is to make sure it's caught with both orders (static,// then normal, and vice-versa.class X {public:  int foo();            // { dg-error "with" }  static int foo();	// error: redeclaration// { dg-error "overloaded" } .*};class Y {public:   static int foo();    // { dg-error "with" }  int foo();		// error: redeclaration// { dg-error "overloaded" } .*};

⌨️ 快捷键说明

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