fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Empty { };
  5.  
  6. void f()
  7. {
  8. Empty a, b;
  9. if (&a == &b) cout << "impossible: report error to compiler supplier";
  10.  
  11. Empty* p1 = new Empty;
  12. Empty* p2 = new Empty;
  13. if (p1 == p2) cout << "impossible: report error to compiler supplier";
  14. }
  15. int main() {
  16. f();
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5420KB
stdin
Standard input is empty
stdout
Standard output is empty