language: C++ 4.7.2 (gcc-4.7.2)
date: 485 days 12 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<iostream>
 
class test {
public:
  test(){ std::cout << "Constructor" << std::endl; }
  ~test(){ std::cout << "Destructor" << std::endl; }
};
 
int main() {
  test * t = new test[ 10 ];
  delete t;
  return 1;
}