mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-02 08:08:20 +00:00
Add the new test suite.
This test suite has been in use for a long time now, in place of the obsolete and unmanageable testparser.py and testfuncs.py. It verifies the complete optimizer output to stdout and stderr, to ensure that the output matches the expectations. See unit_tests/README.txt for more info.
This commit is contained in:
parent
7fbde0269c
commit
1867dc78e7
547 changed files with 11680 additions and 0 deletions
21
unit_tests/regression.suite/state-in-udf-2.lsl
Normal file
21
unit_tests/regression.suite/state-in-udf-2.lsl
Normal file
|
@ -0,0 +1,21 @@
|
|||
x()
|
||||
{
|
||||
// FIXME: When optimizing this, a naked 'state default;' is left.
|
||||
// That is forbidden.
|
||||
do
|
||||
{
|
||||
state default;
|
||||
do
|
||||
state default;
|
||||
while (0);
|
||||
if (1)
|
||||
state default;
|
||||
if (1)
|
||||
;
|
||||
else
|
||||
state default;
|
||||
}
|
||||
while (0);
|
||||
}
|
||||
|
||||
default{timer(){x();}}
|
Loading…
Add table
Add a link
Reference in a new issue