mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

Edits: Slight tweaking, plus a simple test. * 'topic/amazingpp/modifiable-const-via-loops' of ssh://github.com/AmazingPP/zeek: Add help function to check loop variable Fix local const variables can be modified via loops
13 lines
253 B
Text
13 lines
253 B
Text
# @TEST-EXEC-FAIL: zeek -b %INPUT >out 2>&1
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
|
|
|
global x: count = 0;
|
|
|
|
event zeek_init()
|
|
{
|
|
const y: count = 0;
|
|
|
|
for ( x in set(1, 2, 3) ) {}
|
|
for ( y in set(1, 2, 3) ) {}
|
|
}
|
|
|