mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
24 lines
547 B
Text
24 lines
547 B
Text
# @TEST-DOC: Ensure that event coalescence doesn't happen if inlining turned off.
|
|
# @TEST-REQUIRES: test "${ZEEK_USE_CPP}" != "1"
|
|
#
|
|
# @TEST-EXEC: zeek -b -O ZAM -O no-inline %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
event my_event() &priority=-10
|
|
{
|
|
print "first instance, lower priority";
|
|
}
|
|
|
|
event my_event() &priority=10
|
|
{
|
|
print "second instance, higher priority";
|
|
}
|
|
|
|
event zeek_init()
|
|
{
|
|
# This should print two event handler bodies.
|
|
print my_event;
|
|
|
|
# Make sure execution of both handlers happens properly.
|
|
event my_event();
|
|
}
|