fork download
  1. #include <iostream>
  2. #include <cstdlib>
  3.  
  4. struct TEST
  5. {
  6. TEST () {
  7. std::cout << "TEST()" << std::endl ;
  8. }
  9. ~TEST () {
  10. std::cout << "~TEST()" << std::endl ;
  11. }
  12. } ;
  13.  
  14. int foo ()
  15. {
  16. exit ( 0 ) ;
  17. }
  18.  
  19. int main ()
  20. {
  21. TEST t ;
  22. foo();
  23. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
TEST()