fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class X {
  5. public:
  6. bool fn(){ return true; }
  7. };
  8.  
  9.  
  10. int main() {
  11. X * x = nullptr;
  12. bool b = x && x->fn();
  13. std::cout << b;
  14. return 0;
  15. }
Success #stdin #stdout 0s 5296KB
stdin
Standard input is empty
stdout
Standard output is empty