X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/e36ec1f41ffbe9f00db405c775201dbbc384c45c..e42906f7904ca7516e9867a3a19ee08d963b1205:/tests/named-refs.at?ds=sidebyside diff --git a/tests/named-refs.at b/tests/named-refs.at index ff1d4248..8c0fbb90 100644 --- a/tests/named-refs.at +++ b/tests/named-refs.at @@ -443,14 +443,19 @@ AT_SETUP([Stray symbols in brackets]) AT_DATA_GRAMMAR([test.y], [[ %% -start: foo[ /* aaa */ *&-.+ ] bar +start: foo[ /* aaa */ *&-.+\000\001\002\377 ] bar { s = $foo; } ]]) +AT_CHECK([[$PERL -pi -e 's/\\(\d{3})/chr(oct($1))/ge' test.y || exit 77]]) AT_BISON_CHECK([-o test.c test.y], 1, [], [[test.y:11.23: error: invalid character in bracketed name: '*' test.y:11.24: error: invalid character in bracketed name: '&' test.y:11.25: error: invalid character in bracketed name: '-' test.y:11.27: error: invalid character in bracketed name: '+' +test.y:11.28: error: invalid character in bracketed name: '\0' +test.y:11.28: error: invalid character in bracketed name: '\001' +test.y:11.28: error: invalid character in bracketed name: '\002' +test.y:11.28: error: invalid character in bracketed name: '\377' ]]) AT_CLEANUP