updates for usage issues: support for -uu, maybe/definitely distinctions

This commit is contained in:
Vern Paxson 2021-08-16 13:29:05 -07:00
parent 6726eaa0a9
commit f89ed411cf
4 changed files with 17 additions and 8 deletions

View file

@ -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;
}