X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/e8832397ea06de8049828011aff948b5302ffe66..efcb44dd47603edef28bfb037ebd46bb7957fe5b:/tests/regression.at diff --git a/tests/regression.at b/tests/regression.at index f8768f76..d8c3dd88 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -51,7 +51,7 @@ exp: MY_TOKEN; ]]) AT_CHECK([bison input.y -o input.c]) -AT_COMPILE([input], [-c input.c]) +AT_COMPILE([input.o], [-c input.c]) AT_CLEANUP @@ -74,7 +74,7 @@ exp: { tests = {{{{{{{{{{}}}}}}}}}}; }; AT_CHECK([bison -v input.y -o input.c]) -AT_CHECK([fgrep 'tests = {{{{{{{{{{}}}}}}}}}};' input.c], 0, [ignore]) +AT_CHECK([grep 'tests = {{{{{{{{{{}}}}}}}}}};' input.c], 0, [ignore]) AT_CLEANUP @@ -298,7 +298,7 @@ input.y:5.1: invalid character: `%' input.y:6.1: invalid character: `%' input.y:6.2: invalid character: `-' input.y:7.1-8.0: unexpected end of file in a prologue -input.y:7.1-8.0: parse error, unexpected PROLOGUE, expecting ";" or "|" +input.y:7.1-8.0: parse error, unexpected "%{...%}", expecting ";" or "|" ]]) AT_CLEANUP @@ -328,7 +328,33 @@ exp: "a"; ]]) AT_CHECK([bison input.y -o input.c]) -AT_COMPILE([input], [input.c -c]) +AT_COMPILE([input.o], [-c input.c]) +AT_CLEANUP + + + +## -------------------- ## +## Characters Escapes. ## +## -------------------- ## + + +AT_SETUP([Characters Escapes]) + +AT_DATA([input.y], +[%{ +void yyerror (const char *s); +int yylex (void); +%} +[%% +exp: + '\'' "\'" +| '\"' "\"" +| '"' "'" +; +]]) + +AT_CHECK([bison input.y -o input.c]) +AT_COMPILE([input.o], [-c input.c]) AT_CLEANUP