X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/b9cecb91a08fa4baa73a5e12a83611b41507a022..c57b2479ff8aab8259eecb67aebe3af21da65758:/tests/regression.at diff --git a/tests/regression.at b/tests/regression.at index 76170124..849f526c 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -18,6 +18,29 @@ AT_BANNER([[Regression tests.]]) + +## ---------------- ## +## Braces parsing. ## +## ---------------- ## + + +AT_SETUP([braces parsing]) + +AT_DATA([input.y], +[[/* Bison used to swallow the character after `}'. */ + +%% +exp: { tests = {{{{{{{{{{}}}}}}}}}}; } +%% +]]) + +AT_CHECK([bison -v input.y -o input.c], 0, ignore, ignore) + +AT_CHECK([fgrep 'tests = {{{{{{{{{{}}}}}}}}}};' input.c], 0, [ignore]) + +AT_CLEANUP + + ## ------------------ ## ## Duplicate string. ## ## ------------------ ##