aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2004-11-03 22:28:59 +0000
committerBen Elliston <bje@gcc.gnu.org>2004-11-04 09:28:59 +1100
commit318627d5fc55180b3bb8619c408799eb14394cc1 (patch)
tree0e75e6a5984af7586092f663d5f124c45d0a0f8c
parentcb1d5dbaeba57d6536812536ecbdd87c1bc9d17f (diff)
downloadgcc-318627d5fc55180b3bb8619c408799eb14394cc1.zip
gcc-318627d5fc55180b3bb8619c408799eb14394cc1.tar.gz
gcc-318627d5fc55180b3bb8619c408799eb14394cc1.tar.bz2
enum5.C (enum conditions): Move the packed attribute to the definition to satisfy the new C++ parser.
* g++.old-deja/g++.other/enum5.C (enum conditions): Move the packed attribute to the definition to satisfy the new C++ parser. From-SVN: r90039
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/enum5.C10
2 files changed, 10 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 71c5ac0..69c9229 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-03 Ben Elliston <bje@au.ibm.com>
+
+ * g++.old-deja/g++.other/enum5.C (enum conditions): Move the
+ packed attribute to the definition to satisfy the new C++ parser.
+
2004-11-03 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.c-torture/execute/stdarg-2.c (foo): Split multiple
diff --git a/gcc/testsuite/g++.old-deja/g++.other/enum5.C b/gcc/testsuite/g++.old-deja/g++.other/enum5.C
index bee7b98..ad40d4e 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/enum5.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/enum5.C
@@ -1,14 +1,14 @@
// { dg-do run }
-// Copyright (C) 2001, 2003 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
// Contributed by Ben Elliston <bje@redhat.com>
// PR 80: Packed enums use minimum required storage.
extern "C" void abort();
-enum numbers { one, two, three } __attribute__ ((packed)) nums; // { dg-bogus "" "" { xfail *-*-* } }
-enum colours { red = 1000, green, blue } __attribute__ ((packed)) cols; // { dg-bogus "" "" { xfail *-*-* } }
-enum __attribute__ ((packed)) conditions { fine, rain, cloudy } forecast; // { dg-bogus "" "" { xfail *-*-* } }
+enum numbers { one, two, three } __attribute__ ((packed)) nums;
+enum colours { red = 1000, green, blue } __attribute__ ((packed)) cols;
+enum conditions { fine, rain, cloudy } __attribute__ ((packed)) forecast;
int
main()
@@ -19,7 +19,7 @@ main()
if (sizeof (cols) != 2)
abort ();
- if (sizeof (forecast) != 1) // { dg-bogus "" "" { xfail *-*-* } }
+ if (sizeof (forecast) != 1)
abort ();
return 0;