xml大全 可读写调用率很高 xml大全 可读写调用率很高

源代码在线查看: rethrow5.c

软件大小: 34923 K
上传用户: chengshengwu123
关键词: xml 读写
下载地址: 免注册下载 普通下载 VIP

相关代码

				// { dg-do run  }				// Testcase for proper handling of rethrow.								#include 								int c, d;								struct A				{				  int i;				  A () { i = ++c; printf ("A() %d\n", i); }				  A (const A&) { i = ++c; printf ("A(const A&) %d\n", i); }				  ~A() { printf ("~A() %d\n", i); ++d; }				};								int				main ()				{				  try				    {				      try					{					  printf ("Throwing 1...\n");					  throw A();					}				      catch (A)					{					  try					    {					      printf ("Throwing 2...\n");					      throw;					    }					  catch (A)					    {					      printf ("Falling out...\n");					    }					}				    }				  catch (A)				    {				      printf ("Caught.\n");				    }				  printf ("c == %d, d == %d\n", c, d);				  return c != d;				}							

相关资源