fork download
  1. #include <iostream>
  2.  
  3. namespace A
  4. {
  5. namespace
  6. {
  7. bool foo = false;
  8. }
  9.  
  10. void bar()
  11. {
  12. std::cout << foo << '\n';
  13. }
  14.  
  15. bool foo = true;
  16. }
  17.  
  18. int main()
  19. {
  20. A::bar();
  21. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
0