aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/class-names.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-07-16 21:01:53 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-07-16 21:01:53 +0000
commit0ff12f078c70acad7ef18cb4906d17a203d2267a (patch)
tree2b16f665d9ca8afeb56a4d607948376361ac09df /test/Sema/class-names.cpp
parentb2a39459f507ca876a59f0293e46421185321b01 (diff)
When in C++, make EnumConstant names hide tag names in the same scope, instead of colliding with them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/class-names.cpp')
-rw-r--r--test/Sema/class-names.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Sema/class-names.cpp b/test/Sema/class-names.cpp
index b78d6964e2..2a9cd74c3b 100644
--- a/test/Sema/class-names.cpp
+++ b/test/Sema/class-names.cpp
@@ -48,3 +48,5 @@ void bar3() {
}
enum E e2;
+
+enum E2 { E2 };