On Sat, Jul 18, 2020 at 05:04:56PM -0400, David Edelsohn via Gcc-patches wrote:
> H-P,
> 
> After your patch to the testsuite, the cpp/pragma-eof.c testcase is
> failing on all targets.  Would you please investigate and fix?

That is because the dg-error directive had line number of the last line
in the file (without EOL) and the added line changed that.

I've committed following, tested on x86_64-linux, committed to trunk as
obvious.

2020-07-18  Jakub Jelinek  <ja...@redhat.com>

        * c-c++-common/cpp/pragma-eof.c: Use .+3 instead of 6 in
        dg-error.

--- gcc/testsuite/c-c++-common/cpp/pragma-eof.c.jj      2020-07-18 
10:49:16.000000000 +0200
+++ gcc/testsuite/c-c++-common/cpp/pragma-eof.c 2020-07-18 23:08:31.565619340 
+0200
@@ -1,7 +1,7 @@
 /* { dg-require-effective-target fopenmp } */
 /* { dg-additional-options -fopenmp }  */
 
-/* { dg-error "expected" "" { target *-*-* } 6 } */
+/* { dg-error "expected" "" { target *-*-* } .+3 } */
 /* Make sure we see pragma_eol even though lacking new line.  *
 /* no newline at end of file.  */
 #pragma omp parallel
\ No newline at end of file


        Jakub

Reply via email to