mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
tests added for new capture-by-reference closure semantics & errors
This commit is contained in:
parent
4884b191e8
commit
35421b07f1
8 changed files with 503 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
error in <...>/closure-binding-errors.zeek, line 12: a is captured but not used inside lambda (function(){ print no a!})
|
||||
error in <...>/closure-binding-errors.zeek, line 13: no such local identifier: a2
|
||||
error in <...>/closure-binding-errors.zeek, line 14: b is used inside lambda but not captured (function(){ print b})
|
||||
error in <...>/closure-binding-errors.zeek, line 14: a is captured but not used inside lambda (function(){ print b})
|
||||
error in <...>/closure-binding-errors.zeek, line 15: a is captured but not used inside lambda (function(){ print b})
|
||||
error in <...>/closure-binding-errors.zeek, line 16: b listed multiple times in capture (function(){ print b})
|
||||
error in <...>/closure-binding-errors.zeek, line 18: cannot specify global in capture: c
|
||||
error in <...>/closure-binding-errors.zeek, line 19: cannot specify type in capture: t
|
||||
error in <...>/closure-binding-errors.zeek, line 9 and <...>/closure-binding-errors.zeek, line 20: already defined (a)
|
|
@ -0,0 +1 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
Loading…
Add table
Add a link
Reference in a new issue