fork download
  1. struct O {
  2. int o;
  3. O *operator->() { return this; };
  4. int operator-() { return -1; }
  5. O &operator<<(O &o) { return o; }
  6. O &operator>>(O &o) { return o; }
  7. };
  8.  
  9. int main()
  10. {
  11. O o;
  12. if (o->o<-o) o<<o>>o;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 2880KB
stdin
Standard input is empty
stdout
Standard output is empty