zeek/testing/btest/language/arithmetic-record-vec-fail.zeek
2025-08-04 17:09:26 -04:00

16 lines
401 B
Text

# @TEST-EXEC-FAIL: zeek -b %INPUT 2>err
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff err
type WithCount: record {
a: count;
};
type WithInt: record {
a: int;
};
type CountRecVec: vector of WithCount;
global vec_count_fail = CountRecVec([$a=+1], [$a=-2], [$a=3.0]);
type IntRecVec: vector of WithInt;
global vec_int_fail = IntRecVec([$a=1.0], [$a=+2.0], [$a=-3.0]);