fork download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. class Test {
  7. public:
  8. Test() { cout << "Test()\n"; }
  9. ~Test() { cout << "~Test()\n"; }
  10. };
  11.  
  12.  
  13. int main()
  14. {
  15. auto t = new Test[5];
  16. }
  17.  
  18.  
Success #stdin #stdout 0s 4388KB
stdin
Standard input is empty
stdout
Test()
Test()
Test()
Test()
Test()