fork download
  1. #include <iostream>
  2.  
  3. struct T
  4. {
  5. T(T const &e)
  6. {
  7. if ( this == &e )
  8. std::cout << "yep\n";
  9. }
  10. };
  11.  
  12. int main()
  13. {
  14. T t(t);
  15. }
Success #stdin #stdout 0s 4260KB
stdin
Standard input is empty
stdout
yep