fork download
  1. #include <iostream>
  2.  
  3. struct S { int n; };
  4. struct X { X(int) {} };
  5. void foo(void*)
  6. { std::cout << "void*\n"; }
  7. void foo(X x)
  8. { std::cout << "X\n"; }
  9. int main()
  10. {
  11. foo(S().n);
  12. }
Success #stdin #stdout 0s 2828KB
stdin
Standard input is empty
stdout
X