fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. class Test
  5. {
  6. public:
  7. Test() { cout << "Constructor called"; }
  8. };
  9.  
  10. int main()
  11. {
  12. Test *t = (Test *) malloc(sizeof(Test));
  13. return 0;
  14. }
Success #stdin #stdout 0s 5688KB
stdin
Standard input is empty
stdout
Standard output is empty