summaryrefslogtreecommitdiff
path: root/test/SemaCXX/qualified-member-enum.cpp
blob: 750821bfd81ce1f52def904c4a2f86e8fce90873 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -fsyntax-only -verify %s 
// expected-no-diagnostics

// Check that this doesn't crash.
struct A {
  enum {LABEL};
};
int f() {
  return A().A::LABEL;
}