1 // Merge success 2 namespace N1 { 3 int x; 4 } 5 6 // Merge multiple namespaces 7 namespace N2 { 8 extern int x; 9 } 10 namespace N2 { 11 extern float y; 12 } 13 14 // Merge namespace with conflict 15 namespace N3 { 16 extern float z; 17 } 18 19 namespace AliasWithSameName = N3; 20 21 namespace TestUnresolvedTypenameAndValueDecls { 22 template <class T> class Base { 23 public: 24 typedef T foo; 25 void bar(); 26 }; 27 } 28