lookup19.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 55 行
C
55 行
// { 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 + =
减小字号Ctrl + -
显示快捷键?