用于进行gcc测试

源代码在线查看: conv1.c

软件大小: 6330 K
上传用户: yhw002
关键词: gcc 测试
下载地址: 免注册下载 普通下载 VIP

相关代码

				// { dg-do compile }								// Copyright (C) 2001 Free Software Foundation, Inc.				// Contributed by Nathan Sidwell 29 Dec 2001 								// PR 4361. Template conversion operators were not overloaded.								template  struct Second;								template struct First				{				  int Foo ();				  				  template  operator Second();				  template  operator First();				};								template  int First::Foo ()				{} // This is here to make sure we didn't smash Foo's decl in the				   // method vector								struct B { };				struct D { };								void Foo ()				{				  First (First::*pf)() = &First::operator First;				}							

相关资源