X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/8bb936e4f76045c9aac42c7e848d2cf0eff567f1..b87f8b2159820e022e3b726b8369f74d64712f8f:/tests/regression.at diff --git a/tests/regression.at b/tests/regression.at index f97b710a..8fb6ac91 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -287,6 +287,32 @@ AT_CLEANUP +## ------------------- ## +## Token definitions. ## +## ------------------- ## + + +AT_SETUP([Token definitions]) + +# Bison managed, when fed with `%token 'f' "f"' to #define 'f'! +AT_DATA([input.y], +[[%token "end of file" +%token 'a' "a" +%token "b" 'b' +%token "c" c +%token d "d" +%token e 'e' +%token 'f' e +%% +exp: "a"; +]]) + +AT_CHECK([bison input.y -o input.c]) +AT_CHECK([$CC $CFLAGS $CPPFLAGS input.c -c]) +AT_CLEANUP + + + ## -------------- ## ## Web2c Report. ## ## -------------- ##