mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
updates for usage issues: support for -uu, maybe/definitely distinctions
This commit is contained in:
parent
6726eaa0a9
commit
f89ed411cf
4 changed files with 17 additions and 8 deletions
|
@ -1,6 +1,5 @@
|
|||
# Skip this test when using ZAM, as it will generate a hard error (since it's
|
||||
# certain that the variable is used w/o initialization) rather than just
|
||||
# a warning.
|
||||
# Skip this test when using ZAM, as it will generate a hard error in addition
|
||||
# to the warning.
|
||||
# @TEST-REQUIRES: test "${ZEEK_ZAM}" != "1"
|
||||
#
|
||||
# @TEST-DOC: ``zeek -a -u`` should detect usage issues without executing code
|
||||
|
@ -10,5 +9,10 @@
|
|||
event zeek_init()
|
||||
{
|
||||
local a: count;
|
||||
print a;
|
||||
local b: count;
|
||||
|
||||
if ( a > 3 )
|
||||
b = 5;
|
||||
|
||||
print a, b;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue