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

📄 opeq5.c

📁 俄罗斯高人Mamaich的Pocket gcc编译器(运行在PocketPC上)的全部源代码。
💻 C
字号:
// Testcase for tricky synthesized op= in complex inheritance situation.// This used to test whether the virtual base was copy-assigned only once.// That feature is not required by ISO C++, so the test now only checks// whether the vbase is assigned at all.int count = 0;extern "C" int printf (const char *, ...);class A { public:  A& operator = (const A&) { count++; return *this; }};class B: virtual private A { };class C: virtual public A { };class D: public B, public C { };int main(){  D a, b;  a = b;  printf ("%d\n",count);  if (count == 0)    return 1;  return 0;}

⌨️ 快捷键说明

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