zeek/testing/btest/language/undefined-delete-field.bro
2016-01-12 15:02:20 -08:00

15 lines
275 B
Text

# @TEST-EXEC: bro -b %INPUT >output 2>&1 || echo $? >>output
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
type MyRecordType: record
{
a: count;
b: count;
};
event bro_init()
{
local x = MyRecordType($a=1, $b=2);
delete x$c;
}