zeek/testing/btest/core/vector-assignment.zeek
Jon Siwek a994be9eeb Merge remote-tracking branch 'origin/topic/seth/zeek_init'
* origin/topic/seth/zeek_init:
  Some more testing fixes.
  Update docs and tests for bro_(init|done) -> zeek_(init|done)
  Implement the zeek_init handler.
2019-04-19 11:24:29 -07:00

19 lines
397 B
Text

# @TEST-EXEC: bro %INPUT
# This regression test checks a special case in the vector code. In this case
# UnaryExpr will be called with a Type() of any. Tests succeeds if it does not
# crash Bro.
type OptionCacheValue: record {
val: any;
};
function set_me(val: any) {
local a = OptionCacheValue($val=val);
print a;
}
event zeek_init() {
local b: vector of count = {1, 2, 3};
set_me(b);
}