friend34.c
来自「用于进行gcc测试」· C语言 代码 · 共 15 行
C
15 行
// { dg-do assemble }// This testcase won't fail if class ::foo is forward-declared in the// global namespace, nor if class bar is not a template class.template <typename T = void>class bar {public: friend class foo; // this is not bar::foo, it forward-declares ::foo class foo {}; bar() { foo(); } // but this should refer to bar::foo};bar<> baz;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?