fork download
  1. #include <iostream>
  2.  
  3. class Foo
  4. {
  5. public:
  6. Foo() {std::cout << "bar" << std::endl;}
  7. };
  8.  
  9. int main()
  10. {
  11. std::cout << "Foo:" << std::endl;
  12. Foo foo1;
  13. std::cout << "Foo():" << std::endl;
  14. Foo foo2();
  15. return 0;
  16. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
Foo:
bar
Foo():