Commit 4ba4c213 by Richard Henderson Committed by Richard Henderson

call386.c (foo): Fix return type.

        * 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.

From-SVN: r89358
parent 3e487b21
2004-10-20 Richard Henderson <rth@redhat.com>
* 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.
2004-10-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> 2004-10-20 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/13495 PR c++/13495
......
void foo () {}
foo () {} int main ()
main ()
{ {
int i; int i;
for (i = 100000; i >= 0; i--) for (i = 100000; i >= 0; i--)
...@@ -17,4 +16,5 @@ main () ...@@ -17,4 +16,5 @@ main ()
foo (); foo ();
foo (); foo ();
} }
return 0;
} }
foo (a, c) int foo (a, c)
{ {
int b; int b;
...@@ -7,7 +7,8 @@ foo (a, c) ...@@ -7,7 +7,8 @@ foo (a, c)
return 0; return 0;
} }
bar (a) void bar (a)
int a;
{ {
if (foo (a, 10) & 0x80000000) if (foo (a, 10) & 0x80000000)
printf ("y"); printf ("y");
...@@ -15,7 +16,7 @@ bar (a) ...@@ -15,7 +16,7 @@ bar (a)
printf ("n"); printf ("n");
} }
main () int main ()
{ {
bar (0); bar (0);
bar (1); bar (1);
...@@ -28,4 +29,5 @@ main () ...@@ -28,4 +29,5 @@ main ()
bar (-0x7fffffff); bar (-0x7fffffff);
puts (""); puts ("");
return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment