mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
14 lines
313 B
Text
14 lines
313 B
Text
# @TEST-DOC: Regression test for past ZAM issues with for-loop table "choose".
|
|
# @TEST-REQUIRES: test "${ZEEK_USE_CPP}" != "1"
|
|
#
|
|
# @TEST-EXEC: zeek -b -O ZAM %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
event zeek_init()
|
|
{
|
|
local v = table([1] = 4, [2] = 12);
|
|
for ( i1, i2 in v )
|
|
break;
|
|
|
|
print i1, i2;
|
|
}
|