This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix unsorted/{call386,subcc}.c


These tests were failing on alpha because of non-zero exit codes.


r~


        * gcc.c-torture/unsorted/call386.c (foo): Fix return type.
        (main): Return success.
        * gcc.c-torture/unsorted/subcc.c (foo, bar): Fix return types.
        (main): Return success.

Index: gcc.c-torture/unsorted/call386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/unsorted/call386.c,v
retrieving revision 1.2
diff -c -p -d -u -r1.2 call386.c
--- gcc.c-torture/unsorted/call386.c	16 Dec 1998 22:19:32 -0000	1.2
+++ gcc.c-torture/unsorted/call386.c	21 Oct 2004 00:54:32 -0000
@@ -1,7 +1,6 @@
+void foo () {}
 
-foo () {}
-
-main ()
+int main ()
 {
   int i;
   for (i = 100000; i >= 0; i--)
@@ -17,4 +16,5 @@ main ()
       foo ();
       foo ();
     }
+  return 0;
 }
Index: gcc.c-torture/unsorted/subcc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/unsorted/subcc.c,v
retrieving revision 1.2
diff -c -p -d -u -r1.2 subcc.c
--- gcc.c-torture/unsorted/subcc.c	16 Dec 1998 22:22:17 -0000	1.2
+++ gcc.c-torture/unsorted/subcc.c	21 Oct 2004 00:54:32 -0000
@@ -1,4 +1,4 @@
-foo (a, c)
+int foo (a, c)
 {
   int b;
 
@@ -7,7 +7,8 @@ foo (a, c)
   return 0;
 }
 
-bar (a)
+void bar (a)
+     int a;
 {
   if (foo (a, 10) & 0x80000000)
     printf ("y");
@@ -15,7 +16,7 @@ bar (a)
     printf ("n");
 }
 
-main ()
+int main ()
 {
   bar (0);
   bar (1);
@@ -28,4 +29,5 @@ main ()
   bar (-0x7fffffff);
 
   puts ("");
+  return 0;
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]