mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
14 lines
451 B
Text
14 lines
451 B
Text
# @TEST-DOC: Regression tests for past ZAM bugs handling empty infinite loops
|
|
# @TEST-REQUIRES: test "${ZEEK_USE_CPP}" != "1"
|
|
#
|
|
# @TEST-EXEC-FAIL: zeek -b -O ZAM %INPUT
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff .stderr
|
|
|
|
event zeek_init()
|
|
{
|
|
# It used to be that ZAM would fault doing control-flow propagation
|
|
# when compiling empty infinite loops. Now it should generate a
|
|
# compile-time error.
|
|
while ( T )
|
|
;
|
|
}
|