mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
17 lines
323 B
Text
17 lines
323 B
Text
# @TEST-DOC: Regression test for reassigning an "any" field
|
|
# @TEST-REQUIRES: test "${ZEEK_USE_CPP}" != "1"
|
|
# @TEST-EXEC: zeek -b -O ZAM %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
type X: record {
|
|
a: string;
|
|
b: any;
|
|
};
|
|
|
|
event zeek_init()
|
|
{
|
|
local x = X($a="123", $b=vector("abc"));
|
|
print x;
|
|
x$b = 1;
|
|
print x;
|
|
}
|