fork download
  1. #include <memory>
  2. #include <map>
  3.  
  4. #include <iostream>
  5. #define X() (std::cout << __PRETTY_FUNCTION__ << "\n")
  6.  
  7. struct S {
  8. S() { X(); }
  9. S(const S&) { X(); }
  10. ~S() { X(); }
  11. };
  12. int main () {
  13. S* p = new S;
  14.  
  15. operator delete(p);
  16. }
  17.  
Success #stdin #stdout 0.01s 2856KB
stdin
Standard input is empty
stdout
S::S()