bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tests: adjust to GCC9 diagnostics with a margin


From: Akim Demaille
Subject: tests: adjust to GCC9 diagnostics with a margin
Date: Sun, 19 May 2019 10:53:37 +0200

commit a2f0444c6e09c8f0e33a617f7986530ee48d7d2e
Author: Akim Demaille <address@hidden>
Date:   Sun May 19 10:52:23 2019 +0200

    tests: adjust to GCC9 diagnostics with a margin
    
    * tests/synclines.at (_AT_SYNCLINES_COMPILE): Remove the margin.

diff --git a/tests/synclines.at b/tests/synclines.at
index 2a8a5fd8..df9d8d66 100644
--- a/tests/synclines.at
+++ b/tests/synclines.at
@@ -90,7 +90,17 @@ m4_define([_AT_SYNCLINES_COMPILE],
 #    syncline.c:4:2: error: #error "4"
 #     #error "4"
 #      ^~~~~
+#
+# GCC 9 displays a left-hand margin with the line number:
+#
+#    syncline.c: In function 'foo':
+#    syncline.c:4:2: error: #error "4"
+#        4 | #error "4"
+#          |  ^~~~~
 AT_CHECK([[$PERL -p -0777 - stderr <<\EOF
+  # Remove left-hand margin.
+  s/^[\d ]{6}\| //gm;
+
   # 1. Remove useless lines.
 
   # distcc clutter.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]