X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/219458e22f163ede84daa71dfa98bab82a766954..c017f88fdedf409dc63ca63bab0b045ad23d0719:/tests/input.at?ds=sidebyside diff --git a/tests/input.at b/tests/input.at index 4d7308c1..f2c1fcb3 100644 --- a/tests/input.at +++ b/tests/input.at @@ -20,6 +20,25 @@ AT_BANNER([[Input Processing.]]) # Mostly test that we are robust to mistakes. +## ----------------- ## +## Invalid options. ## +## ----------------- ## + +AT_SETUP([Invalid options]) + +AT_DATA([input.y], +[[%% +exp: '0' +]]) + +# We used to accept these, as -f, --report and others were sharing +# their code with -W. +AT_BISON_CHECK([-ferror=caret input.y], [1], [], [ignore]) +AT_BISON_CHECK([--report=error=itemsets input.y], [1], [], [ignore]) + +AT_CLEANUP + + ## ---------------- ## ## Invalid inputs. ## ## ---------------- ##