fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Foo{
  5. Foo(int x): x(x){ }
  6. Foo(const Foo &f){ }
  7. ~Foo(){ cout << "Aye" << x; }
  8. int x;
  9. };
  10.  
  11. int main() {
  12. Foo a(5);
  13. {
  14. Foo b(6);
  15. a = b;
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
Aye6Aye6