fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3. #include <stdio.h>
  4.  
  5. struct test{
  6. int getX(){
  7. return getY();
  8. }
  9. int getY(){
  10. return 3;
  11. }
  12. };
  13.  
  14. int main()
  15. {
  16. test t = test();
  17. int i = 3;
  18. if(i == t.getX())
  19. printf("%d", i);
  20. }
  21.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
3