blob: d0fbd8147650645c83d27fef47443655b9d9e05a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
http://git.savannah.gnu.org/cgit/bison.git/commit/?id=4ad3921d3be296de6a2b3c5fe0e18136d53ba06d
--- a/tests/synclines.at
+++ b/tests/synclines.at
@@ -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
])
|