fork(1) download
  1. #include <iostream>
  2.  
  3. struct X
  4. {
  5. X() { std::cout << "X()\n"; }
  6. X(int) { std::cout << "X(int)\n"; }
  7. };
  8.  
  9. const int answer = 42;
  10.  
  11. int main()
  12. {
  13. X(answer);
  14. }
  15.  
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
X()