Allow Zeek function equality comparisons

Equality between two functions acts like a pointer comparison.
This commit is contained in:
Jon Siwek 2020-06-27 23:09:02 -07:00
parent 11949ce37a
commit 6e67a40d24
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,4 @@
F
T
T
F

View file

@ -0,0 +1,18 @@
# @TEST-EXEC: zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
function foo()
{ print "foo"; }
function bar()
{ print "bar"; }
global baz = bar;
event zeek_init()
{
print foo == bar;
print foo != bar;
print bar == baz;
print bar != baz;
}