From d103fa240f8cd5cbde8329a390e7b7430c4b5b1a Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 19 Jan 2006 16:57:43 +0000 Subject: struct-layout-encoding-1_generate.c (switchfiles): Fix fprintf's by adding srcdir or removing it. 2006-01-19 Andrew Pinski * objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c (switchfiles): Fix fprintf's by adding srcdir or removing it. From-SVN: r109970 --- .../objc.dg/gnu-encoding/struct-layout-encoding-1_generate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/testsuite/objc.dg') 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 31f328e..4b5d5c6 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 @@ -230,13 +230,13 @@ switchfiles (int fields) { fprintf (outfile, "\ /* { dg-do run { xfail *-*-* } } */\n\ -/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n"); +/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n", srcdir); } else { fprintf (outfile, "\ /* { dg-do run } */\n\ -/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n"); +/* { dg-options \"-w -I%s -fgnu-runtime\" } */\n", srcdir); } fprintf(outfile, "#include \n\ #include \"struct-layout-1.h\"\n\ @@ -274,7 +274,7 @@ int main (void)\n\ abort ();\n\ }\n\ exit (0);\n\ -}\n", srcdir, filecnt, filecnt); +}\n", filecnt, filecnt); fclose (outfile); sprintf (destptr, "t%03d_test.h", filecnt); outfile = fopen (destbuf, "w"); -- cgit v1.1