linux下编程用 编译软件

源代码在线查看: virtual.c

软件大小: 49607 K
上传用户: IsABC
关键词: linux 编程 编译 软件
下载地址: 免注册下载 普通下载 VIP

相关代码

				// { dg-do assemble  }				// From: chw@bellcore.com (Charlie Woloszynski,MRE 2J-278,8295228,,27143)				// Newsgroups: gnu.g++.bug				// Subject: gcc-2.5.5 bug in multiple inheritance and pure virtual functions				// Date: 25 Jan 1994 23:41:36 -0500								// Bug: g++ fails to notice definitions of abstract virtuals.								class A 				{				public:				  virtual void a1() = 0;				  virtual void a2() = 0;				};								class B				{				public:				  virtual void b1() = 0;				  virtual void b2() = 0;				};												class C: public A, public B				{				public:				  virtual void a2() {};				  virtual void b2() {};				};								class D : public C				{				public:				  virtual void a1() {};				  virtual void b1() {};				};								int main()				{				  D d;				// { dg-bogus "" } 				}							

相关资源