summaryrefslogtreecommitdiff
path: root/test/SemaCXX/ast-print.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-10-24 20:21:25 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-10-24 20:21:25 +0000
commita45451d0959501c7d82582c61571a29cfdacdb0b (patch)
treefa29ea2421d2a53a852f84008cc318a71dbb1615 /test/SemaCXX/ast-print.cpp
parent6c8b6498bed5f378018285c42b367dc2e06a98cd (diff)
downloadclang-a45451d0959501c7d82582c61571a29cfdacdb0b.tar.gz
Don't print scope qualifiers for references to a type defined locally in a function. Patch by Grzegorz Jablonski.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/ast-print.cpp')
-rw-r--r--test/SemaCXX/ast-print.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/SemaCXX/ast-print.cpp b/test/SemaCXX/ast-print.cpp
index 0dad623d47..aeb4039d59 100644
--- a/test/SemaCXX/ast-print.cpp
+++ b/test/SemaCXX/ast-print.cpp
@@ -64,3 +64,20 @@ template <class S> void test7()
// CHECK: t.~T();
template <typename T> void test8(T t) { t.~T(); }
+
+
+// CHECK: enum E {
+// CHECK-NEXT: A,
+// CHECK-NEXT: B,
+// CHECK-NEXT: C
+// CHECK-NEXT: };
+// CHECK-NEXT: {{^[ ]+}}E a = A;
+
+struct test9
+{
+ void f()
+ {
+ enum E { A, B, C };
+ E a = A;
+ }
+};