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>
PR c++/13495
......
void foo () {}
foo () {}
main ()
int main ()
{
int i;
for (i = 100000; i >= 0; i--)
......@@ -17,4 +16,5 @@ main ()
foo ();
foo ();
}
return 0;
}
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;
}
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