mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: GCC 4.5 compliance.
* tests/synclines.at (AT_SYNCLINES_COMPILE): Adjust to GCC 4.5's messages about #error.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2009-08-12 Akim Demaille <demaille@gostai.com>
|
||||
|
||||
tests: GCC 4.5 compliance.
|
||||
* tests/synclines.at (AT_SYNCLINES_COMPILE): Adjust to GCC 4.5's
|
||||
messages about #error.
|
||||
|
||||
2009-08-12 Akim Demaille <demaille@gostai.com>
|
||||
|
||||
build: fix the generation of the documentation.
|
||||
|
||||
@@ -34,7 +34,18 @@ m4_define([AT_SYNCLINES_COMPILE],
|
||||
# =>
|
||||
# input.y:4: #error "4"
|
||||
#
|
||||
AT_CHECK([[sed -e 's/^\([^:]*:[^:.]*\)[.:][^:]*:\(.*\)$/\1:\2/' -e 's/^\([^:]*:[^:]*:\)[^@%:@]*\( @%:@error\)/\1\2/' stderr]], 0, [stdout])
|
||||
# It may also issue more context information:
|
||||
#
|
||||
# input.y: In function 'yyparse':
|
||||
# input.y:8: #error "8"
|
||||
# =>
|
||||
# input.y:4: #error "8"
|
||||
#
|
||||
AT_CHECK([[sed -e 's/^\([^:]*:[^:.]*\)[.:][^:]*:\(.*\)$/\1:\2/' \
|
||||
-e 's/^\([^:]*:[^:]*:\)[^@%:@]*\( @%:@error\)/\1\2/' \
|
||||
-e "/^[^:]*: In function '[^\']*':$/d" \
|
||||
stderr]],
|
||||
0, [stdout])
|
||||
])
|
||||
|
||||
# AT_TEST_SYNCLINE(TITLE, INPUT, ERROR-MSG)
|
||||
|
||||
Reference in New Issue
Block a user