44 lines · c
1namespace Namespace1 { namespace Nested1 {} }2 3namespace Namespace1 {4static int varInNamespace = 1;5struct char_box { char c; };6void funcInNamespace();7 8namespace Nested1 {9void funcInNestedNamespace(int i);10struct char_box {11 char c;12 void methodInNestedNamespace();13 struct inner_char_box {14 char c;15 };16};17}18 19namespace Nested1 {20static int varInNestedNamespace = 1;21void funcInNestedNamespace(int i);22 23namespace Namespace1 {24struct char_box { char c; };25} // namespace Namespace126} // namespace Nested127 28namespace Nested2 {29static int varInNestedNamespace = 2;30} // namespace Nested231 32namespace Nested1 { namespace Namespace1 {} }33} // namespace Namespace134 35namespace Namespace1 {36typedef int my_typedef;37using my_using_decl = int;38}39 40inline namespace InlineNamespace1 {41static int varInInlineNamespace = 3;42void funcInInlineNamespace();43}44