mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00

This change adds support for complex indexes for sets and tables. With this change, sets with indexes like: set[string, count, count] will function. Before this change, Zeek raised an error message in these cases. Addresses GH-1033
15 lines
472 B
Text
15 lines
472 B
Text
# @TEST-EXEC-FAIL: zeek -b -B broker %INPUT
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff .stderr
|
|
|
|
module TestModule;
|
|
|
|
type testrec: record {
|
|
a: count;
|
|
b: string;
|
|
c: set[string];
|
|
};
|
|
|
|
global b: table[string] of testrec &backend=Broker::MEMORY;
|
|
global c: table[string] of count &read_expire=5sec &backend=Broker::MEMORY;
|
|
global d: table[string] of count &broker_store="store" &backend=Broker::MEMORY;
|
|
global f: count &backend=Broker::MEMORY;
|