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

📄 pmf6.c

📁 linux下编程用 编译软件
💻 C
字号:
// { dg-do run  }// Test that we only call f once and that pointers to different subobjects// compare as different.struct A { void f() { } };struct B: public A { };struct C: public A { };struct D : public B, public C { };typedef void (B::*bp)();typedef void (C::*cp)();typedef void (D::*dp)();dp d1;int call;dp f () { ++call; return d1; }int main(){  bp b = &A::f;  cp c = &A::f;  d1 = b;  dp d2 = c;  return (f() == d2 || call != 1);}

⌨️ 快捷键说明

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