[3.4 patch] Fix two testcases
Kaveh R. Ghazi
ghazi@caipclassic.rutgers.edu
Sat Dec 3 03:06:00 GMT 2005
As per your requests here:
http://gcc.gnu.org/ml/gcc-patches/2005-12/msg00142.html
http://gcc.gnu.org/ml/gcc-patches/2005-12/msg00141.html
I've modified these two testcases so that they honor the existing
xfails inside them.
Tested via "make check". Okay for 3.4?
Thanks,
--Kaveh
2005-12-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* g++.old-deja/g++.other/enum5.C: Change from "run" to "compile".
Fix attribute for new parser. Remove unnecessary dg-bogus.
* g++.old-deja/g++.pt/friend44.C: Change from "run" to "compile".
diff -rup orig/egcc-3.4-SVN20051201/gcc/testsuite/g++.old-deja/g++.other/enum5.C egcc-3.4-SVN20051201/gcc/testsuite/g++.old-deja/g++.other/enum5.C
--- orig/egcc-3.4-SVN20051201/gcc/testsuite/g++.old-deja/g++.other/enum5.C 2005-11-03 11:01:33.000000000 -0500
+++ egcc-3.4-SVN20051201/gcc/testsuite/g++.old-deja/g++.other/enum5.C 2005-12-02 20:44:41.000000000 -0500
@@ -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;
diff -rup orig/egcc-3.4-SVN20051201/gcc/testsuite/g++.old-deja/g++.pt/friend44.C egcc-3.4-SVN20051201/gcc/testsuite/g++.old-deja/g++.pt/friend44.C
--- orig/egcc-3.4-SVN20051201/gcc/testsuite/g++.old-deja/g++.pt/friend44.C 2005-11-03 11:01:40.000000000 -0500
+++ egcc-3.4-SVN20051201/gcc/testsuite/g++.old-deja/g++.pt/friend44.C 2005-12-02 20:49:20.000000000 -0500
@@ -1,4 +1,4 @@
-// { dg-do run }
+// { dg-do compile }
// Test that template friends referring to class template members are
// respected.
More information about the Gcc-patches
mailing list