zeek/testing/btest/bifs/lookup_ID.zeek
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

20 lines
346 B
Plaintext

#
# @TEST-EXEC: zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
global a = "zeek test";
type Color: enum { RED, GREEN, BLUE };
event zeek_init()
{
local b = "local value";
print lookup_ID("a");
print lookup_ID("");
print lookup_ID("xyz");
print lookup_ID("b");
print lookup_ID("GREEN");
print type_name( lookup_ID("zeek_init") );
}