1 //===-- ns.h ------------------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include <cstdio> 10 11 void test_lookup_at_global_scope(); 12 void test_lookup_at_file_scope(); 13 void test_lookup_before_using_directive(); 14 void test_lookup_after_using_directive(); 15 int func(int a); 16 namespace A { 17 int foo(); 18 int func(int a); 19 inline int func() { 20 std::printf("A::func()\n"); 21 return 3; 22 } 23 inline int func2() { 24 std::printf("A::func2()\n"); 25 return 3; 26 } 27 void test_lookup_at_ns_scope(); 28 namespace B { 29 int func(); 30 void test_lookup_at_nested_ns_scope(); 31 void test_lookup_at_nested_ns_scope_after_using(); 32 } // namespace B 33 } // namespace A 34