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]

RFA: gcc testsuite typo fix


Hi -

May I commit this harmless-looking fix to the trunk?
Under some circumstances, the undecorated "abort;" is interpreted as
a reference to an undefined identifier, causing an unintended failure.


2002-09-09  Frank Ch. Eigler  <fche@redhat.com>

	* gcc.c-torture/execute/20010915-1.c: Correct typo in abort call.

Index: gcc.c-torture/execute/20010915-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/20010915-1.c,v
retrieving revision 1.1
diff -u -r1.1 20010915-1.c
--- gcc.c-torture/execute/20010915-1.c	14 Sep 2001 22:33:58 -0000	1.1
+++ gcc.c-torture/execute/20010915-1.c	9 Sep 2002 17:24:41 -0000
@@ -53,7 +53,7 @@
 char *s (char *v, char **pp)
 {
   if (strcmp (v, "a") != 0 || check++ > 1)
-    abort;
+    abort ();
   *pp = v+1;
   return 0;
 }


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