diff options
author | Anders Svensson <[email protected]> | 2011-06-27 16:43:37 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-06-27 16:43:37 +0200 |
commit | bd6666300edb76e09c07508e3513f7bdde985b43 (patch) | |
tree | 1e735ae4a1ab2b63597f43ec342cefcd77513563 /lib/parsetools/test/yecc_SUITE.erl | |
parent | 916e80959746c467ff858538e35f3c0105dbbced (diff) | |
parent | 1049243404cc52cad5ce1f1d2d37383a2ca06160 (diff) | |
download | otp-bd6666300edb76e09c07508e3513f7bdde985b43.tar.gz otp-bd6666300edb76e09c07508e3513f7bdde985b43.tar.bz2 otp-bd6666300edb76e09c07508e3513f7bdde985b43.zip |
Merge remote branch 'upstream/dev' into dev
Diffstat (limited to 'lib/parsetools/test/yecc_SUITE.erl')
-rw-r--r-- | lib/parsetools/test/yecc_SUITE.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/parsetools/test/yecc_SUITE.erl b/lib/parsetools/test/yecc_SUITE.erl index 1de87b3bff..0133524950 100644 --- a/lib/parsetools/test/yecc_SUITE.erl +++ b/lib/parsetools/test/yecc_SUITE.erl @@ -247,6 +247,14 @@ syntax(Config) when is_list(Config) -> ?line {ok,_,[{_,[{2,yecc,bad_declaration}]}]} = yecc:file(Filename, Ret), + %% Bad declaration with warnings_as_errors. + error = yecc:file(Filename, [warnings_as_errors]), + error = yecc:file(Filename, [return_warnings,warnings_as_errors]), + {ok,_,[{_,[{2,yecc,bad_declaration}]}]} = + yecc:file(Filename, [return_warnings]), + {error,_,[{_,[{2,yecc,bad_declaration}]}]} = + yecc:file(Filename, [return_errors,warnings_as_errors]), + %% Bad declaration. ?line ok = file:write_file(Filename, <<"Nonterminals nt. Terminals t. |