From 1cff29398c9593a51543e166061895a98825e2bf Mon Sep 17 00:00:00 2001
From: Vassil Vassilev <vvasilev@cern.ch>
Date: Thu, 5 Dec 2013 15:33:19 +0100
Subject: [PATCH] Test enum constant cleanup.

---
 .../cling/test/ErrorRecovery/NestedTags.C     | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/interpreter/cling/test/ErrorRecovery/NestedTags.C b/interpreter/cling/test/ErrorRecovery/NestedTags.C
index e2ce38fea70..813b3f388d5 100644
--- a/interpreter/cling/test/ErrorRecovery/NestedTags.C
+++ b/interpreter/cling/test/ErrorRecovery/NestedTags.C
@@ -1,23 +1,34 @@
 // RUN: cat %s | %cling -Xclang -verify 2>&1 | FileCheck %s
 
 // Tests the removal of nested decls 
-
 .storeState "testNestedDecls1"
 struct Outer { struct Inner { enum E{i = 1}; }; };error_here; // expected-error {{use of undeclared identifier 'error_here'}}
 .compareState "testNestedDecls1"
+// CHECK-NOT: Differences
+
+.rawInput 1
+.storeState "parentLookupTables"
+enum AnEnum {
+   aa = 3,
+   bb = 4,
+ }; error_here; // expected-error {{C++ requires a type specifier for all declarations}}
+.compareState "parentLookupTables"
+.rawInput 0
+// CHECK-NOT: Differences
 
 .rawInput
 namespace Outer { struct Inner { enum E{i = 2}; }; }; 
 .rawInput
 
-Outer::Inner::i
-// CHECK: (Outer::Inner::E::i) : (int) 2
-
 enum A{a};
 
 .storeState "testNestedDecls2"
 enum A{a}; // expected-error {{redefinition of 'A'}} expected-note {{previous definition is here}}
 .compareState "testNestedDecls2"
 // CHECK-NOT: Differences
+
+Outer::Inner::i
+// CHECK: (Outer::Inner::E::i) : (int) 2
+
 a // CHECK: (enum A) (A::a) : (int) 0
 .q
-- 
GitLab