X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/342b8b6e2156e923797745af2da2596e3086ccd5..5e5d541531bda9507136d3c578315a2882d67412:/tests/output.at diff --git a/tests/output.at b/tests/output.at index 964e9119..4332372d 100644 --- a/tests/output.at +++ b/tests/output.at @@ -31,7 +31,7 @@ foo: {} AT_CHECK([bison $3 $1], 0) AT_CHECK([ls $4], [], [ignore]) -AT_CLEANUP($4) +AT_CLEANUP ]) AT_CHECK_OUTPUT([foo.y], [], [-dv], @@ -53,6 +53,19 @@ AT_CHECK_OUTPUT([foo.y], [%defines %verbose], [], AT_CHECK_OUTPUT([foo.y], [%defines %verbose %yacc],[], [y.output y.tab.c y.tab.h]) +AT_CHECK_OUTPUT([foo.yy], [%defines %verbose %yacc],[], + [y.output y.tab.c y.tab.h]) + +# Exercise %output and %file-prefix +AT_CHECK_OUTPUT([foo.y], [%file-prefix="bar" %defines %verbose], [], + [bar.output bar.tab.c bar.tab.h]) +AT_CHECK_OUTPUT([foo.y], [%output="bar.c" %defines %verbose %yacc],[], + [bar.output bar.c bar.h]) +AT_CHECK_OUTPUT([foo.y], + [%file-prefix="baz" %output="bar.c" %defines %verbose %yacc], + [], + [bar.output bar.c bar.h]) + # Check priorities of extension control. AT_CHECK_OUTPUT([foo.yy], [%defines %verbose], [],