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