diff options
author | David Billinghurst <David.Billinghurst@riotinto.com> | 2002-01-17 22:48:08 +0000 |
---|---|---|
committer | David Billinghurst <billingd@gcc.gnu.org> | 2002-01-17 22:48:08 +0000 |
commit | ee459e5e1bf45b84f7b76091542d5699fa399229 (patch) | |
tree | 38e73f44cdd1129bd593f6f873b455c7063a5826 | |
parent | 088827831af835a7935ab4cce91f511eadaf43e4 (diff) | |
download | gcc-ee459e5e1bf45b84f7b76091542d5699fa399229.zip gcc-ee459e5e1bf45b84f7b76091542d5699fa399229.tar.gz gcc-ee459e5e1bf45b84f7b76091542d5699fa399229.tar.bz2 |
deprecated.C: Fix FAIL from "At global scope" message
2001-01-17 David Billinghurst <David.Billinghurst@riotinto.com>
* g++.dg/other/deprecated.C: Fix FAIL from
"At global scope" message
* g++.dg/ext/align1.C: Fix fail on cygwin from maximum
alignment warnings
From-SVN: r48971
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/align1.C | 3 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/other/deprecated.C | 9 |
3 files changed, 16 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 548b97e..e72961a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,13 @@ 2001-01-18 David Billinghurst <David.Billinghurst@riotinto.com> + * g++.dg/other/deprecated.C: Fix FAIL from + "At global scope" message + * g++.dg/ext/align1.C: Fix fail on cygwin from maximum + alignment warnings + + +2001-01-18 David Billinghurst <David.Billinghurst@riotinto.com> + * gcc.misc-tests/i386-prefetch.exp: Save and restore torture_with_loops and torture_without_loops diff --git a/gcc/testsuite/g++.dg/ext/align1.C b/gcc/testsuite/g++.dg/ext/align1.C index 75986fd..b7a8511 100644 --- a/gcc/testsuite/g++.dg/ext/align1.C +++ b/gcc/testsuite/g++.dg/ext/align1.C @@ -1,4 +1,5 @@ // Test that __attribute__ ((aligned)) is preserved. +// Cygwin does not support alignment greater than 16 extern "C" int printf (const char *, ...); @@ -7,8 +8,10 @@ typedef float at[4][4] __attribute__ ((aligned (64))); float dummy[4][4][15]; static volatile at a1[15]; +// { dg-bogus "object file alignment" "" { xfail i?86-pc-cygwin } 10 } float f1 __attribute__ ((aligned (64))); +// { dg-bogus "object file alignment" "" { xfail i?86-pc-cygwin } 13 } int main() { diff --git a/gcc/testsuite/g++.dg/other/deprecated.C b/gcc/testsuite/g++.dg/other/deprecated.C index 40d9dba..7d9f587 100644 --- a/gcc/testsuite/g++.dg/other/deprecated.C +++ b/gcc/testsuite/g++.dg/other/deprecated.C @@ -1,6 +1,7 @@ /* Test __attribute__ ((deprecated)) */ /* { dg-do compile } */ /* { dg-options "-Wdeprecated-declarations -fmessage-length=0" } */ +/* { dg-bogus "At global scope" "" { xfail *-*-* } 0 } */ #if 1 typedef int INT1 __attribute__((deprecated)); @@ -53,9 +54,9 @@ int func1() int (*pf)() = f1; /* { dg-warning "`f1' is deprecated" "" } */ z = w + x + y + g1 + g2 + g3; /* { dg-warning "`x' is deprecated" "" } */ - /* { dg-warning "`y' is deprecated" "" { target *-*-* } 55 } */ - /* { dg-warning "`g2' is deprecated" "" { target *-*-* } 55 } */ - /* { dg-warning "`g3' is deprecated" "" { target *-*-* } 55 } */ + /* { dg-warning "`y' is deprecated" "" { target *-*-* } 56 } */ + /* { dg-warning "`g2' is deprecated" "" { target *-*-* } 56 } */ + /* { dg-warning "`g3' is deprecated" "" { target *-*-* } 56 } */ return f1(); /* { dg-warning "`f1' is deprecated" "" } */ } @@ -71,7 +72,7 @@ int func2(S1 *p) p->u1.field5 = g1 + p->field7; p->u2.field9; /* { dg-warning "`u2' is deprecated" "" } */ return p->u1.field6 + p->field8; /* { dg-warning "`field6' is deprecated" "" } */ - /* { dg-warning "`field8' is deprecated" "" { target *-*-* } 73 } */ + /* { dg-warning "`field8' is deprecated" "" { target *-*-* } 74 } */ } struct SS1 { |