1 #include <cstdio> 2 3 void test_lookup_at_global_scope(); 4 void test_lookup_at_file_scope(); 5 void test_lookup_before_using_directive(); 6 void test_lookup_after_using_directive(); 7 int func(int a); 8 namespace A { 9 int foo(); 10 int func(int a); func()11inline int func() { 12 std::printf("A::func()\n"); 13 return 3; 14 } func2()15inline int func2() { 16 std::printf("A::func2()\n"); 17 return 3; 18 } 19 void test_lookup_at_ns_scope(); 20 namespace B { 21 int func(); 22 void test_lookup_at_nested_ns_scope(); 23 void test_lookup_at_nested_ns_scope_after_using(); 24 } // namespace B 25 } // namespace A 26