summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/qualified-member-enum.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/qualified-member-enum.cpp')
-rw-r--r--clang/test/SemaCXX/qualified-member-enum.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/qualified-member-enum.cpp b/clang/test/SemaCXX/qualified-member-enum.cpp
new file mode 100644
index 0000000..83b0a59
--- /dev/null
+++ b/clang/test/SemaCXX/qualified-member-enum.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+// Check that this doesn't crash.
+struct A {
+ enum {LABEL};
+};
+int f() {
+ return A().A::LABEL;
+}
+