mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
Fixing bug with records sometimes unnecessarily coerced on assignment.
This commit is contained in:
parent
1cbde793d8
commit
58f86ae55d
4 changed files with 16 additions and 3 deletions
1
testing/btest/Baseline/language.record-ref-assign/output
Normal file
1
testing/btest/Baseline/language.record-ref-assign/output
Normal file
|
@ -0,0 +1 @@
|
|||
XXX, XXX
|
12
testing/btest/language/record-ref-assign.bro
Normal file
12
testing/btest/language/record-ref-assign.bro
Normal file
|
@ -0,0 +1,12 @@
|
|||
# @TEST-EXEC: bro %INPUT >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
type State: record {
|
||||
host: string &default="NOT SET";
|
||||
};
|
||||
|
||||
global session: State;
|
||||
global s: State;
|
||||
s = session;
|
||||
s$host = "XXX";
|
||||
print s$host, session$host;
|
Loading…
Add table
Add a link
Reference in a new issue