Expr: Remove vector scalar operations

These seem to have been deprecated since 2018, so do it now.
Unfortunately the message didn't contain a version when it'll
be removed, but it's been long enough.
This commit is contained in:
Arne Welzel 2023-03-17 12:03:58 +01:00
parent 12d5dca70f
commit 5ef62b2de8
12 changed files with 112 additions and 282 deletions

View file

@ -0,0 +1,17 @@
# @TEST-DOC: Support for incrementing vectors using IncrExpr has been removed.
# @TEST-EXEC-FAIL: zeek -b %INPUT >out 2>&1
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
type rec: record {
a: count;
b: string;
c: vector of count;
};
global vec: vector of count = vector(0,0,0);
global v: rec = [$a=0, $b="test", $c=vector(1,2,3)];
++v$a;
++vec;
++v$c;