mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
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:
parent
12d5dca70f
commit
5ef62b2de8
12 changed files with 112 additions and 282 deletions
17
testing/btest/language/incr-vec-expr-error.test
Normal file
17
testing/btest/language/incr-vec-expr-error.test
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue