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

📄 lookup19.c

📁 linux下编程用 编译软件
💻 C
字号:
// { dg-do assemble  }// Test for proper handling of type lookup for conversion operator names.// Test 1: Only at file scopetypedef int B;struct A{  int B;  operator B *(); // { dg-error "" } };A::operator B * () // { dg-error "" } {  return 0;}// Test 2: Only at class scopestruct C{  typedef int D;  operator D *();};int D;C::operator D * (){  return 0;}// Test 3: Matchingstruct E{  typedef int F;  operator F *();};typedef int F;E::operator F * (){  return 0;}// Test 4: Conflictingstruct G{  typedef int H;  operator H *();};typedef double H;G::operator H * (){  return 0;}

⌨️ 快捷键说明

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