diff options
author | Theophile Ranquet <theophile.ranquet@gmail.com> | 2012-10-01 13:44:19 +0000 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2012-10-01 14:11:27 +0200 |
commit | a49f4904c36d585fa057b681c38af4d48de7c23b (patch) | |
tree | 075ee69a11d177c0f1ba9fb3097905ded27d5883 /tests/named-refs.at | |
parent | fa98bb3233f7f291d8efa2565288bc0597f92063 (diff) | |
download | bison-a49f4904c36d585fa057b681c38af4d48de7c23b.tar.gz |
warnings: remove spurious suffixes on context
Rectify a bug that introduced suffixes out of place.
* src/complainc.c (complains): Handle all three special warning bits.
* src/scan-code.l (show_sub_message): Remove useless argument.
* tests/named-refs.at: Adjust.
Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
Diffstat (limited to 'tests/named-refs.at')
-rw-r--r-- | tests/named-refs.at | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/named-refs.at b/tests/named-refs.at index 1cd55b31..ff1d4248 100644 --- a/tests/named-refs.at +++ b/tests/named-refs.at @@ -254,9 +254,9 @@ AT_BISON_CHECK([-o test.c test.y], 1, [], [[test.y:50.51-60: error: invalid reference: '$<ival>lo9' test.y:50.3-68: symbol not found in production: lo9 test.y:51.51-60: warning: misleading reference: '$<ival>exp' [-Wother] -test.y:42.1-3: refers to: $exp at $$ [-Wother] -test.y:51.7: possibly meant: $x, hiding $exp at $1 [-Wother] -test.y:51.41: possibly meant: $r, hiding $exp at $4 [-Wother] +test.y:42.1-3: refers to: $exp at $$ +test.y:51.7: possibly meant: $x, hiding $exp at $1 +test.y:51.41: possibly meant: $r, hiding $exp at $4 test.y:52.51-52: error: $l of 'exp' has no declared type test.y:55.46-49: error: invalid reference: '$r12' test.y:55.3-53: symbol not found in production: r12 @@ -278,8 +278,8 @@ foo.bar: '2' ]]) AT_BISON_CHECK([-o test.c test.y], 0, [], [[test.y:11.22-29: warning: misleading reference: '$foo.bar' [-Wother] -test.y:11.8-10: refers to: $foo at $1 [-Wother] -test.y:11.12-18: possibly meant: $[foo.bar] at $2 [-Wother] +test.y:11.8-10: refers to: $foo at $1 +test.y:11.12-18: possibly meant: $[foo.bar] at $2 ]]) AT_CLEANUP |