zeek/testing/btest/language/enum-scope.zeek

14 lines
212 B
Text

# @TEST-EXEC: zeek -b %INPUT >output 2>&1
# @TEST-EXEC: btest-diff output
type foo: enum { a, b } &redef;
module test;
redef enum foo += { c };
export {
type foo: enum { a, b };
}
print ::a, ::b, a, b, c;