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

📄 const2.c

📁 linux下编程用 编译软件
💻 C
字号:
// PR c++/3331: just because 'this' is readonly and bars[0].b is readonly// doesn't mean that the result of the member reference is readonly.struct foo{  int a;  struct bar  { int foo::* b ;};  static const bar bars[];  void bad ()  {    this->*(bars[0].b) = 42; // { dg-bogus "read-only" "" }  }};const foo::bar foo::bars[] = { { &foo::a } };int main (){ }

⌨️ 快捷键说明

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