SHA256
1
0
forked from pool/bison
bison/bison-2.4.1-28169bab1f6f2fc
OBS User autobuild b476c0f5bf Accepting request 32048 from devel:tools:compiler
Copy from devel:tools:compiler/bison based on submit request 32048 from user rguenther

OBS-URL: https://build.opensuse.org/request/show/32048
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bison?expand=0&rev=8
2010-02-11 18:13:12 +00:00

35 lines
1.1 KiB
Plaintext

From 28169bab1f6f2fc9d682118703f6267c63583720 Mon Sep 17 00:00:00 2001
From: Akim Demaille <demaille@gostai.com>
Date: Wed, 12 Aug 2009 14:18:12 +0000
Subject: tests: GCC 4.5 compliance.
* tests/synclines.at (AT_SYNCLINES_COMPILE): Adjust to GCC 4.5's
messages about #error.
---
diff --git a/tests/synclines.at b/tests/synclines.at
index 8653b46..56efdac 100644
--- a/tests/synclines.at
+++ b/tests/synclines.at
@@ -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)
--
cgit v0.8.2.1