zeek/testing/btest/language/record-function-recursion.bro
2016-01-21 13:56:21 -08:00

19 lines
286 B
Text

# @TEST-EXEC: bro -b %INPUT 2>&1 >out
# @TEST-EXEC: btest-diff out
type Outer: record {
id: count &optional;
};
type Inner: record {
create: function(input: Outer) : string;
};
redef record Outer += {
inner: Inner &optional;
};
event bro_init() {
local o = Outer();
print o;
}