fork download
  1. #include <iostream>
  2.  
  3. namespace test
  4. {
  5. void f()
  6. {
  7. std::cout << "f" << std::endl;
  8. }
  9. }
  10. inline namespace test
  11. {
  12. void g()
  13. {
  14. std::cout << "g" << std::endl;
  15. }
  16. }
  17. namespace test
  18. {
  19. void h()
  20. {
  21. std::cout << "h" << std::endl;
  22. }
  23. }
  24.  
  25. int main()
  26. {
  27. test::f();
  28. test::g();
  29. test::h();
  30. f();
  31. g();
  32. h();
  33. }
  34.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
f
g
h
f
g
h