This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] update gcc.dg/cpp/direct2.c & direct2s.c test cases
- From: Per Bothner <per at bothner dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 11 Mar 2005 23:00:07 -0800
- Subject: [committed] update gcc.dg/cpp/direct2.c & direct2s.c test cases
I checked the attached patch into mainline.
Otherwise my recent lexer changes causes an apparent regression.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
2005-03-11 Per Bothner <per@bothner.com>
* gcc.dg/cpp/direct2.c: With new lexer changes, error "before string
constant" is now actually on same line as string constant.
* gcc.dg/cpp/direct2s.c: Likewise.
Index: gcc.dg/cpp/direct2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cpp/direct2.c,v
retrieving revision 1.5
diff -u -r1.5 direct2.c
--- gcc.dg/cpp/direct2.c 5 Nov 2004 16:43:49 -0000 1.5
+++ gcc.dg/cpp/direct2.c 12 Mar 2005 06:54:20 -0000
@@ -12,7 +12,7 @@
HASH include "somerandomfile" /*{ dg-error "stray" "non-include" }*/
/*{ dg-bogus "No such" "don't execute non-include" { target *-*-* } 13 }*/
-int resync_parser_1; /*{ dg-error "parse|syntax|expected" "" }*/
+int resync_parser_1; /*{ dg-error "parse|syntax|expected" "" { target *-*-* } 13 }*/
HASHINCLUDE <somerandomfile> /*{ dg-error "stray|expected" "non-include 2" }*/
/*{ dg-bogus "No such" "don't execute non-include 2" { target *-*-* } 17 }*/
Index: gcc.dg/cpp/direct2s.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cpp/direct2s.c,v
retrieving revision 1.5
diff -u -r1.5 direct2s.c
--- gcc.dg/cpp/direct2s.c 5 Nov 2004 16:43:49 -0000 1.5
+++ gcc.dg/cpp/direct2s.c 12 Mar 2005 06:54:20 -0000
@@ -14,7 +14,7 @@
HASH include "somerandomfile" /*{ dg-error "stray" "non-include" }*/
/*{ dg-bogus "No such" "don't execute non-include" { target *-*-* } 15 }*/
-int resync_parser_1; /*{ dg-error "parse|syntax|expected" "" }*/
+int resync_parser_1; /*{ dg-error "parse|syntax|expected" "" { target *-*-* } 15 }*/
HASHINCLUDE <somerandomfile> /*{ dg-error "stray|expected" "non-include 2" }*/
/*{ dg-bogus "No such" "don't execute non-include 2" { target *-*-* } 18 }*/