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]

[PATCH] (checked in) update expected error message in gcc.test-framework


Update two of the gcc.test-framework tests that look for text in an
error message that is different with the new C parser.  Tested on
powerpc64-linux, checked in on mainline.

2005-02-28  Janis Johnson  <janis187@us.ibm.com>

	* gcc.test-framework/dg-error-exp-P.c: Update message for new C parser.
	* gcc.test-framework/dg-error-exp-XP.c: Ditto.

Index: gcc/testsuite/gcc.test-framework/dg-error-exp-P.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.test-framework/dg-error-exp-P.c,v
retrieving revision 1.1
diff -u -p -r1.1 dg-error-exp-P.c
--- gcc/testsuite/gcc.test-framework/dg-error-exp-P.c	1 Feb 2005 17:37:23 -0000	1.1
+++ gcc/testsuite/gcc.test-framework/dg-error-exp-P.c	28 Feb 2005 23:31:31 -0000
@@ -4,6 +4,6 @@
 
 int main (int argc, char *argv[])
 {
-  +;		/* { dg-error "syntax error" "error test" } */
+  +;		/* { dg-error "expected expression" "error test" } */
   return 0;
 }
Index: gcc/testsuite/gcc.test-framework/dg-error-exp-XP.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.test-framework/dg-error-exp-XP.c,v
retrieving revision 1.1
diff -u -p -r1.1 dg-error-exp-XP.c
--- gcc/testsuite/gcc.test-framework/dg-error-exp-XP.c	1 Feb 2005 17:37:23 -0000	1.1
+++ gcc/testsuite/gcc.test-framework/dg-error-exp-XP.c	28 Feb 2005 23:31:45 -0000
@@ -5,7 +5,7 @@
 int main (int argc, char *argv[])
 {
   +;
-              /* { dg-error "syntax error" "error test" { xfail *-*-* } 7 } */
+              /* { dg-error "expected expression" "error test" { xfail *-*-* } 7 } */
   return 0;
 }
 /* { dg-excess-errors "expect failure" { xfail *-*-* } } */


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