summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/decl-3.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-24 17:22:20 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-24 17:22:20 +0000
commit5dad28f1aa5236c87acd9baa5fed055743addf04 (patch)
tree0df83d2241d0c2e8cf4abfc9975db885362bef6d /gcc/testsuite/gcc.dg/decl-3.c
parente9437a8f0034393543bef9634d5488654c03d310 (diff)
downloadgcc-5dad28f1aa5236c87acd9baa5fed055743addf04.tar.gz
PR c/17188
* c-decl.c (diagnose_mismatched_decls): Check for duplicate declarations of enumerators. (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check for redefinition. Check for nested redefinition. (finish_struct): Don't check for nested redefinition. (start_enum): Check for nested redefinition. testsuite: * gcc.dg/nested-redef-1.c, gcc.dg/pr17188-1.c: New tests. * gcc.dg/decl-3.c: Adjust expected message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88063 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/decl-3.c')
-rw-r--r--gcc/testsuite/gcc.dg/decl-3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/decl-3.c b/gcc/testsuite/gcc.dg/decl-3.c
index 2bfac89c136..5bbe19cd224 100644
--- a/gcc/testsuite/gcc.dg/decl-3.c
+++ b/gcc/testsuite/gcc.dg/decl-3.c
@@ -2,4 +2,4 @@
/* { dg-do compile } */
enum { CODES }; /* { dg-error "previous definition" } */
-enum { CODES }; /* { dg-error "conflicting types" } */
+enum { CODES }; /* { dg-error "conflicting types|redeclaration of enumerator" } */