diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 78eb81f8c6af..bee9b72ffc9f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2000-11-18 Richard Henderson + + * gcc.c-torture/execute/20001009-2.c (foo): Rename from main. + (main): New. Exit cleanly. + 2000-11-18 Joseph S. Myers * gcc.dg/c90-fordecl-1.c, gcc.dg/c99-fordecl-1.c, diff --git a/gcc/testsuite/gcc.c-torture/execute/20001009-2.c b/gcc/testsuite/gcc.c-torture/execute/20001009-2.c index 1d392a672f6f..d67efdad68aa 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20001009-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/20001009-2.c @@ -1,5 +1,5 @@ int b=1; -main() +int foo() { int a; int c; @@ -14,3 +14,8 @@ main() abort(); return c; } +int main() +{ + foo(); + return 0; +}