mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
19 lines
335 B
Text
19 lines
335 B
Text
# Ensures that an error is printed out for option variables
|
|
# that are containers if they aren't initialized.
|
|
|
|
# @TEST-EXEC-FAIL: zeek -b %INPUT > out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
@load misc/stats
|
|
|
|
type TestRecord: record {
|
|
a: count;
|
|
b: Stats::Info &optional;
|
|
};
|
|
|
|
option foo: TestRecord &redef;
|
|
|
|
event zeek_init()
|
|
{
|
|
print foo;
|
|
}
|