p3538b.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 36 行

C
36
字号
// Build don't link:// prms-id: 3538// This tests for an ambiguous conversion of the this pointer (going// down to DECL_CONTEXT of a FUNCTION_DECL.class ccObjectInfo{public:    virtual const ccObjectInfo& repInvariant (int);};template<class T>class ccHandle : public  ccObjectInfo{protected:  T* p;public:  virtual const ccObjectInfo& repInvariant (int);};template <class T>const ccObjectInfo& ccHandle<T>::repInvariant (int){ return p->repInvariant(1); }class ccHandleBase : public ccObjectInfo{};class cc_CircleHdl : public virtual ccHandleBase, public ccObjectInfo{				// WARNING - public:  virtual const ccObjectInfo& repInvariant (int);};class ccCircleHdl : public ccHandle <cc_CircleHdl> {};

⌨️ 快捷键说明

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