fork(33) download
  1. #include <iostream>
  2.  
  3. namespace X {
  4. namespace {
  5. void foo() { std::cout << "lol\n"; }
  6. }
  7.  
  8. void bar() { foo(); }
  9. }
  10.  
  11. int main()
  12. {
  13. X::bar();
  14. X::foo(); // can't do this directly
  15. }
Success #stdin #stdout 0s 2928KB
stdin
Standard input is empty
stdout
lol
lol