xref: /aosp_15_r20/external/clang/test/CXX/class.derived/p2.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
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 }
10