Mac OS X 10.4.9 for x86 Source Code gcc 实现源代码

源代码在线查看: misc14.c

软件大小: 38649 K
上传用户: liuchuyuan
关键词: Source Code Mac for
下载地址: 免注册下载 普通下载 VIP

相关代码

				// { dg-do run  }				// GROUPS passed				extern "C" int printf (const char *, ...);				extern "C" void exit(int);								class A {				public:				  virtual ~A() {				    printf("FAIL\n");				    exit (1);				  }				};								class B : public A {				public:				  virtual ~B() {				    printf("PASS\n");				    exit (0);				  }				};								int main() {				  B b;				  A *ap = &b;				  ap->~A();  // This should call the destructor virtually.				  printf("FAIL\n");				  return 1;				}							

相关资源