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

10 lines
307 B
Plaintext

# @TEST-EXEC: zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
# Type inference for vector constructor comprised of enums should work fine
# (previously the internal merge_types code did not handle enums).
type color: enum { Red, Green, Blue };
global v = vector(Red, Green, Blue);
print type_name(v), v;