mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
portability: fix test suite for GCC 4.5's new #error message.
Reported by Tys Lefering at
<http://lists.gnu.org/archive/html/bug-bison/2010-03/msg00030.html>.
* NEWS (2.4.3): Mention.
* tests/synclines.at (AT_TEST_SYNCLINE): Implement.
(cherry picked from commit 18493762be)
This commit is contained in:
@@ -71,7 +71,9 @@ AT_CHECK([[test "`cat stdout`" = 'syncline.c:1: @%:@error "1"' || exit 77]])
|
||||
AT_DATA([[input.y]], [$2])
|
||||
AT_BISON_CHECK([-o input.c input.y])
|
||||
AT_SYNCLINES_COMPILE([input.c])
|
||||
AT_CHECK([cat stdout], 0, [$3])
|
||||
# GCC 4.5 tells you the function within which #error appears, but
|
||||
# previous versions of gcc do not.
|
||||
AT_CHECK([grep -v ': In function ' stdout], 0, [$3])
|
||||
AT_CLEANUP
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user