mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00

"delete x$y" now resets record field "x" back to its original state if it is either &optional or has a &default. "delete" may not be used with non-optional/default fields.
11 lines
150 B
Text
11 lines
150 B
Text
|
|
# @TEST-EXEC-FAIL: bro %INPUT >output 2>&1
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
type X: record {
|
|
a: count;
|
|
};
|
|
|
|
global x: X = [$a=20];
|
|
|
|
delete x$a;
|