📄 arm2.c
字号:
// { 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -