diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/enum5.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/enum5.C | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/enum5.C b/gcc/testsuite/g++.old-deja/g++.other/enum5.C index bee7b985b5a..f254dca1bf5 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/enum5.C +++ b/gcc/testsuite/g++.old-deja/g++.other/enum5.C @@ -1,4 +1,4 @@ -// { dg-do run } +// { dg-do compile } // Copyright (C) 2001, 2003 Free Software Foundation, Inc. // Contributed by Ben Elliston <bje@redhat.com> @@ -8,7 +8,7 @@ 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 conditions { fine, rain, cloudy } __attribute__ ((packed)) forecast; // { dg-bogus "" "" { xfail *-*-* } } 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; |