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

📄 using2.c

📁 linux下的gcc编译器
💻 C
字号:
// { dg-do run }// Copyright (C) 2002 Free Software Foundation, Inc.// Contributed by Nathan Sidwell 15 Sep 2002 <nathan@codesourcery.com>// PR 7919. Methods found via using decls didn't have their this// pointers converted to the final base type.struct Base {  int m;  protected:  void *Return () { return this; }};struct Derived : Base {  using Base::Return;  virtual ~Derived () {}};int main (){  Derived d;    return static_cast <Base *> (&d) != d.Return ();}

⌨️ 快捷键说明

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