45 lines · c
1// Header for PCH test namespaces.cpp2 3namespace N1 {4 typedef int t1;5}6 7namespace N1 {8 typedef int t2;9 10 void used_func();11 12 struct used_cls { };13}14 15namespace N2 {16 typedef float t1;17 18 namespace Inner {19 typedef int t3;20 };21}22 23namespace {24 void anon() { }25 class C;26}27 28namespace N3 {29 namespace {30 class C;31 }32}33 34namespace Alias1 = N2::Inner;35 36using namespace N2::Inner;37 38extern "C" {39 void ext();40}41 42inline namespace N4 { 43 struct MemberOfN4;44}45