mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
13 lines
236 B
Text
13 lines
236 B
Text
# @TEST-EXEC: zeek -b %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
type myrec: record {
|
|
foo: function(a: string);
|
|
};
|
|
|
|
event zeek_init()
|
|
{
|
|
local w = "world";
|
|
local mr = myrec($foo[w](a: string) = { print a + w; });
|
|
mr$foo("hello");
|
|
}
|