override-attribs.c
来自「用于进行gcc测试」· C语言 代码 · 共 25 行
C
25 行
// PR c++/14688// { dg-do compile { target i?86-*-* x86_64-*-* } }// { dg-require-effective-target ilp32 }class one{public: virtual void test(void* value); // { dg-error "overriding" }};class two : public one{public: void __attribute__((regparm(2))) test(void* value); // { dg-error "conflicting type attributes" }};class three : public one{public: void __attribute__ ((cdecl)) test(void* value); // OK};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?