fork(3) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. struct foo {
  6. foo& operator=(foo const&) { cout << "foo\n"; return *this; }
  7. foo& operator=(int) { cout << "int\n"; return *this; }
  8. };
  9.  
  10. int main() {
  11. foo f;
  12. f = {};
  13. }
  14.  
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
int