mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Testcase for crash when a record contains a function referencing a record.
Needs BRO_PROFILER_FILE set to crash
This commit is contained in:
parent
bf52f986c2
commit
13c4489578
1 changed files with 19 additions and 0 deletions
19
testing/btest/language/record-function-recursion.bro
Normal file
19
testing/btest/language/record-function-recursion.bro
Normal file
|
@ -0,0 +1,19 @@
|
|||
# @TEST-EXEC: bro -b %INPUT 2>&1 >out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
type Outer: record {
|
||||
id: count &optional;
|
||||
};
|
||||
|
||||
type Inner: record {
|
||||
create: function(input: Outer) : string;
|
||||
};
|
||||
|
||||
redef record Outer += {
|
||||
inner: Inner &optional;
|
||||
};
|
||||
|
||||
event bro_init() {
|
||||
local o = Outer();
|
||||
print o;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue