p2.cpp 229 B

123456789
  1. // RUN: %clang_cc1 %s -fsyntax-only -verify
  2. // expected-no-diagnostics
  3. // "During the lookup for a base class name, non-type names are ignored"
  4. namespace PR5840 {
  5. struct Base {};
  6. int Base = 10;
  7. struct Derived : Base {};
  8. }