xref: /llvm-project/clang/test/CXX/class.derived/p2.cpp (revision 48521209aa4d95a97564f8a5af7ccca09c6ede5d)
1 // RUN: %clang_cc1 %s -fsyntax-only -verify
2 // expected-no-diagnostics
3 
4 // "During the lookup for a base class name, non-type names are ignored"
5 namespace PR5840 {
6   struct Base {};
7   int Base = 10;
8   struct Derived : Base {};
9 } // namespace PR5840
10 
11 namespace issue_16855 {
12   struct x {};
13   namespace
14   {
15       namespace x
16       {
17           struct y : x
18           {};
19       } // namespace x
20   }
21 } // namespace issue_16855
22