> Le 29 mai 2018 à 09:22, Akim Demaille <a...@lrde.epita.fr> a écrit :
> 
> I’ll apply the following changes to maint in a couple of days,
> to leave some time for reviews.

I’ll also add this:

commit ee098a4bc335fc90e8a17d7b610fb8cf52ab8038
Author: Akim Demaille <akim.demai...@gmail.com>
Date:   Tue May 29 09:28:49 2018 +0200

    tests: adjust syncline tests to GCC 7.
    
    GCC 7 also underlines the error.
    
        syncline.c:4:2: error: #error "4"
         #error "4"
          ^~~~~
    
    * tests/synclines.at (_AT_SYNCLINES_COMPILE): Remove tildas from GCC 7.

diff --git a/tests/synclines.at b/tests/synclines.at
index 985083b2..362fc73d 100644
--- a/tests/synclines.at
+++ b/tests/synclines.at
@@ -84,6 +84,12 @@ m4_define([_AT_SYNCLINES_COMPILE],
 #
 # Newer GCCs go further and if the function is declared static, complain
 # that it's not used.
+#
+# GCC 7 also underlines the error.
+#
+#    syncline.c:4:2: error: #error "4"
+#     #error "4"
+#      ^~~~~
 AT_CHECK([[$PERL -p -0777 - stderr <<\EOF
   # 1. Remove useless lines.
 
@@ -93,8 +99,8 @@ AT_CHECK([[$PERL -p -0777 - stderr <<\EOF
   s/^clang: warning: treating 'c' input as 'c\+\+'.*\n//gm;
   # Function context.
   s/^[^:]*: In function '[^']+':\n//gm;
-  # Caret error.
-  s/^ *#error.*\n *\^\n//gm;
+  # Caret error (with possible '~' to underline).
+  s/^ *#error.*\n *\^~*\n//gm;
   # Number of errors.
   s/^1 error generated\.\n//gm;
 


Reply via email to