mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

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.
7 lines
216 B
Text
7 lines
216 B
Text
# @TEST-EXEC-FAIL: zeek -b %INPUT >output 2>&1
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath" btest-diff output
|
|
|
|
type my_enum: enum {
|
|
explicitly_negative = -1,
|
|
overflow = 9223372036854775808,
|
|
};
|