[cfe-commits] r54470 - /cfe/trunk/test/Sema/enum.c
Daniel Dunbar
daniel at zuster.org
Thu Aug 7 09:23:01 PDT 2008
Author: ddunbar
Date: Thu Aug 7 11:22:45 2008
New Revision: 54470
URL: http://llvm.org/viewvc/llvm-project?rev=54470&view=rev
Log:
Add test for nested enum redefinition.
- <rdar://problem/6093889>
Modified:
cfe/trunk/test/Sema/enum.c
Modified: cfe/trunk/test/Sema/enum.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/enum.c?rev=54470&r1=54469&r2=54470&view=diff
==============================================================================
--- cfe/trunk/test/Sema/enum.c (original)
+++ cfe/trunk/test/Sema/enum.c Thu Aug 7 11:22:45 2008
@@ -51,3 +51,7 @@
// PR2416
enum someenum {}; // expected-warning {{use of empty enum extension}}
+// <rdar://problem/6093889>
+enum e0 { // expected-error {{previous definition is here}}
+ E0 = sizeof(enum e0 { E1 }) // expected-error {{nested redefinition}}
+};
More information about the cfe-commits
mailing list