xref: /llvm-project/clang-tools-extra/test/modularize/Inputs/NamespaceClasses.h (revision 0b7fc15e7035276e2f8a778ebe15f4cad9007c99)
18e01c069SJohn Thompson // Define same class name in different namespaces.
28e01c069SJohn Thompson 
38e01c069SJohn Thompson namespace Namespace1 {
48e01c069SJohn Thompson   class NamespaceClass {
58e01c069SJohn Thompson   public:
NamespaceClass()68e01c069SJohn Thompson     NamespaceClass() : Member(0) {}
78e01c069SJohn Thompson   private:
88e01c069SJohn Thompson     int Member;
98e01c069SJohn Thompson   };
108e01c069SJohn Thompson }
118e01c069SJohn Thompson 
128e01c069SJohn Thompson namespace Namespace2 {
138e01c069SJohn Thompson   class NamespaceClass {
148e01c069SJohn Thompson   public:
NamespaceClass()158e01c069SJohn Thompson     NamespaceClass() : Member(0) {}
168e01c069SJohn Thompson   private:
178e01c069SJohn Thompson     int Member;
188e01c069SJohn Thompson   };
198e01c069SJohn Thompson }
20*0b7fc15eSJohn Thompson 
21