mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
22 lines
368 B
Text
22 lines
368 B
Text
# @TEST-EXEC: zeek -b -O ZAM --optimize-func='my_test' %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
# Tests that we can selectively a given function.
|
|
|
|
function my_test()
|
|
{
|
|
print "I should be ZAM code!";
|
|
}
|
|
|
|
function another_test()
|
|
{
|
|
print "I shouldn't be ZAM code!";
|
|
}
|
|
|
|
event zeek_init()
|
|
{
|
|
my_test();
|
|
another_test();
|
|
print my_test;
|
|
print another_test;
|
|
}
|