zeek/testing/btest/language/record-extension.bro
Robin Sommer 13a492091f Merge remote branch 'origin/topic/robin/logging-internals'
Includes some additional cleanup.
2011-04-20 21:30:41 -07:00

19 lines
303 B
Text

# @TEST-EXEC: bro %INPUT >output
# @TEST-EXEC: btest-diff output
type Foo: record {
a: count;
b: count &optional;
};
redef record Foo += {
c: count &default=42;
d: count &optional;
};
global f1: Foo = [$a=21];
global f2: Foo = [$a=21, $d="XXX"];
print f1;
print f2;