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