mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Add regression test for the keyerror bug
This commit is contained in:
parent
73bc2c29a8
commit
2c94905f1e
3 changed files with 30 additions and 0 deletions
13
unit_tests/regression.suite/inliner-keyerror-bug.lsl
Normal file
13
unit_tests/regression.suite/inliner-keyerror-bug.lsl
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
integer x() inline
|
||||||
|
{
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
default
|
||||||
|
{
|
||||||
|
touch(integer n)
|
||||||
|
{
|
||||||
|
x();
|
||||||
|
n++;
|
||||||
|
}
|
||||||
|
}
|
16
unit_tests/regression.suite/inliner-keyerror-bug.out
Normal file
16
unit_tests/regression.suite/inliner-keyerror-bug.out
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
default
|
||||||
|
{
|
||||||
|
touch(integer LslLibrary)
|
||||||
|
{
|
||||||
|
integer loc____ret__00001;
|
||||||
|
{
|
||||||
|
{
|
||||||
|
loc____ret__00001 = 3;
|
||||||
|
;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@___rtl__00001;
|
||||||
|
loc____ret__00001;
|
||||||
|
LslLibrary++;
|
||||||
|
}
|
||||||
|
}
|
1
unit_tests/regression.suite/inliner-keyerror-bug.run
Normal file
1
unit_tests/regression.suite/inliner-keyerror-bug.run
Normal file
|
@ -0,0 +1 @@
|
||||||
|
main.py - -O -constfold,inline,shrinknames -y
|
Loading…
Add table
Add a link
Reference in a new issue