diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2006-01-17 17:30:12 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2006-01-17 09:30:12 -0800 |
commit | bcb36c3e02e3bd2843aad1b9888513dfb5d6e337 (patch) | |
tree | f4384539ac1b90edb60b4a805f37b53dbc6fe4e7 | |
parent | 30bdf688e0df4f60827103129123af879ede5e17 (diff) | |
download | gcc-bcb36c3e02e3bd2843aad1b9888513dfb5d6e337.zip gcc-bcb36c3e02e3bd2843aad1b9888513dfb5d6e337.tar.gz gcc-bcb36c3e02e3bd2843aad1b9888513dfb5d6e337.tar.bz2 |
struct-layout-encoding-1_generate.c (switchfiles): xfail txxx where xxx >= 25.
2006-01-17 Andrew Pinski <pinskia@physics.uc.edu>
* objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c (switchfiles):
xfail txxx where xxx >= 25.
From-SVN: r109829
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c | 19 |
2 files changed, 21 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f91771b..bc47000 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2006-01-17 Andrew Pinski <pinskia@physics.uc.edu> + * objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c (switchfiles): + xfail txxx where xxx >= 25. + +2006-01-17 Andrew Pinski <pinskia@physics.uc.edu> + PR testsuite/25764 * gcc.dg/const-compare.c: Restrict compiling to powerpc*-*-darwin*. diff --git a/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c b/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c index 4ed33d5..31f328e 100644 --- a/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c +++ b/gcc/testsuite/objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c @@ -222,10 +222,23 @@ switchfiles (int fields) fputs ("failed to create test files\n", stderr); exit (1); } - fprintf (outfile, "\ + /* FIXME: these should not be xfailed but they are because + of bugs in libobjc and the objc front-end. 25 is because + vectors are not encoded. The rest are because or zero sized + arrays are encoded as pointers. */ + if (filecnt >= 25) + { + fprintf (outfile, "\ +/* { dg-do run { xfail *-*-* } } */\n\ +/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n"); + } + else + { + fprintf (outfile, "\ /* { dg-do run } */\n\ -/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n\ -#include <objc/encoding.h> \n\ +/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n"); + } + fprintf(outfile, "#include <objc/encoding.h> \n\ #include \"struct-layout-1.h\"\n\ \n\ int fails; \n\ |