From e59adf8f042c54514f77baf82bac61fcfa414ee8 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 12 Apr 2005 22:35:53 +0000 Subject: [PATCH] (Typed symbol aliases): New test. --- tests/input.at | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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 -- 2.50.0