mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 15:53:03 +00:00
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.
This commit is contained in:
@@ -84,6 +84,12 @@ m4_define([_AT_SYNCLINES_COMPILE],
|
|||||||
#
|
#
|
||||||
# Newer GCCs go further and if the function is declared static, complain
|
# Newer GCCs go further and if the function is declared static, complain
|
||||||
# that it's not used.
|
# 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
|
AT_CHECK([[$PERL -p -0777 - stderr <<\EOF
|
||||||
# 1. Remove useless lines.
|
# 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;
|
s/^clang: warning: treating 'c' input as 'c\+\+'.*\n//gm;
|
||||||
# Function context.
|
# Function context.
|
||||||
s/^[^:]*: In function '[^']+':\n//gm;
|
s/^[^:]*: In function '[^']+':\n//gm;
|
||||||
# Caret error.
|
# Caret error (with possible '~' to underline).
|
||||||
s/^ *#error.*\n *\^\n//gm;
|
s/^ *#error.*\n *\^~*\n//gm;
|
||||||
# Number of errors.
|
# Number of errors.
|
||||||
s/^1 error generated\.\n//gm;
|
s/^1 error generated\.\n//gm;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user