mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
19 lines
239 B
Text
19 lines
239 B
Text
# @TEST-EXEC: zeek -b %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
type c: count;
|
|
function foo(): count
|
|
{
|
|
local bar: any;
|
|
bar = c;
|
|
return when ( 5 > 3 )
|
|
{
|
|
return 9;
|
|
}
|
|
}
|
|
|
|
event zeek_init()
|
|
{
|
|
when ( local b = foo() )
|
|
print b;
|
|
}
|