xref: /aosp_15_r20/external/clang/test/SemaCXX/qualified-member-enum.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 
4 // Check that this doesn't crash.
5 struct A {
6   enum {LABEL};
7 };
f()8 int f() {
9   return A().A::LABEL;
10 }
11 
12