fork(1) download
  1. struct A
  2. {
  3. virtual ~A() { f(); }
  4.  
  5. virtual void f() = 0;
  6. };
  7.  
  8. void A::f() {} // BODY
  9.  
  10. struct B : A
  11. {
  12. void f() {}
  13. };
  14.  
  15. int main()
  16. {
  17. delete new B;
  18. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
Standard output is empty