From a3ef37ddfeddcc5b0f1c5068d8fdeb25a302d5cd Mon Sep 17 00:00:00 2001
From: pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue, 17 Jan 2006 17:30:12 +0000
Subject: [PATCH] 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.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109829 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/testsuite/ChangeLog                       |  5 +++++
 .../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 f91771b53e81..bc4700080df8 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+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
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 4ed33d554c29..31f328ee9a99 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\
-- 
GitLab