]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
20001009-2.c (foo): Rename from main.
authorRichard Henderson <rth@redhat.com>
Sun, 19 Nov 2000 09:33:30 +0000 (01:33 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 19 Nov 2000 09:33:30 +0000 (01:33 -0800)
        * gcc.c-torture/execute/20001009-2.c (foo): Rename from main.
        (main): New.  Exit cleanly.

From-SVN: r37560

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20001009-2.c

index 78eb81f8c6af86aa55f2dbeb42f2945777dce2e6..bee9b72ffc9fb649e39d414e1598fb705cee53f6 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-18  Richard Henderson  <rth@redhat.com>
+
+       * gcc.c-torture/execute/20001009-2.c (foo): Rename from main.
+       (main): New.  Exit cleanly.
+
 2000-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * gcc.dg/c90-fordecl-1.c, gcc.dg/c99-fordecl-1.c,
index 1d392a672f6f502767510bcd84e88ffee0a46bd3..d67efdad68aa5f9fa7e4c88cc804db82e732301c 100644 (file)
@@ -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;
+}