X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/d46c3fc6945b2a4f2df28a7535c79acd88850eb5..e59adf8f042c54514f77baf82bac61fcfa414ee8:/tests/input.at diff --git a/tests/input.at b/tests/input.at index 20459d2f..886c14ad 100644 --- a/tests/input.at +++ b/tests/input.at @@ -272,3 +272,28 @@ AT_PARSER_CHECK([./input], 0, ]]) AT_CLEANUP + + +## ---------------------- ## +## Typed symbol aliases. ## +## ---------------------- ## + +AT_SETUP([Typed symbol aliases]) + +# Bison 2.0 broke typed symbol aliases - ensure they work. + +AT_DATA_GRAMMAR([input.y], +[[%union +{ + int val; +}; +%token MY_TOKEN "MY TOKEN" +%type exp +%% +exp: "MY TOKEN"; +%% +]]) + +AT_CHECK([bison -o input.c input.y]) + +AT_CLEANUP