Skip to content

Commit

Permalink
Merge pull request #435 from ratmice/warnings_ctfails
Browse files Browse the repository at this point in the history
Add ctfails tests for warnings_are_errors.
  • Loading branch information
ltratt authored Jan 2, 2024
2 parents 37275d5 + 240deb4 commit a637019
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lrpar/cttests/src/ctfails/warnings.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Test warnings are treated as errors by default.
yacckind: Original(YaccOriginalActionKind::GenericParseTree)
grammar: |
%start A
%token b
%%
A : 'a';
B : 'b';
lexer: |
%%
a 'a'
b 'b'
13 changes: 13 additions & 0 deletions lrpar/cttests/src/ctfails/warnings_flags.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Test enabling warnings are errors.
yacckind: Original(YaccOriginalActionKind::GenericParseTree)
yacc_flags: [ warnings_are_errors ]
grammar: |
%start A
%token b
%%
A : 'a';
B : 'b';
lexer: |
%%
a 'a'
b 'b'

0 comments on commit a637019

Please sign in to comment.