mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Add enum value negative check
There was one already at parse time, this adds a check later so that cases like overflows or internal enums with negative values get caught.
This commit is contained in:
parent
d3dd8a155d
commit
08348cd177
3 changed files with 16 additions and 0 deletions
3
testing/btest/Baseline/language.enum-negative/output
Normal file
3
testing/btest/Baseline/language.enum-negative/output
Normal file
|
@ -0,0 +1,3 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
error in <...>/enum-negative.zeek, line 5: enumerator is not a count constant
|
||||
error in <...>/enum-negative.zeek, line 6: enumerator value cannot be negative
|
Loading…
Add table
Add a link
Reference in a new issue