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

This was marked to be done in Zeek 5.1, so do it now. The message didn't include a version, unfortunately, but minimally there was a comment when it should happen.
28 lines
528 B
Text
28 lines
528 B
Text
# For script optimization this test generates hard errors rather than warnings.
|
|
#
|
|
# @TEST-EXEC-FAIL: zeek -b %INPUT >out 2>err
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff err
|
|
|
|
event test()
|
|
{
|
|
local var_a: string = "foo";
|
|
}
|
|
|
|
event test()
|
|
{
|
|
if ( F )
|
|
{
|
|
local var_b: string = "bar";
|
|
}
|
|
|
|
local var_a: string = "baz";
|
|
|
|
print "var_a is", var_a;
|
|
print "var_b is", var_b;
|
|
}
|
|
|
|
event zeek_init()
|
|
{
|
|
event test();
|
|
}
|