Testcase for crash when a record contains a function referencing a record.

Needs BRO_PROFILER_FILE set to crash
This commit is contained in:
Johanna Amann 2016-01-21 13:56:21 -08:00
parent bf52f986c2
commit 13c4489578

View 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;
}