zeek/testing/btest/language/enum-multiple-decls.zeek
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

11 lines
336 B
Plaintext

# @TEST-EXEC: zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
# At the moment, it's legal to allow a double definitions. Internally, the
# reason/comment is: "so that we can define an enum both in a *.bif and *.zeek
# for avoiding cyclic dependencies."
type myenum: enum { ONE = 0x01 };
type myenum: enum { ONE = 0x01 };
print ONE;