mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-04 12:14:36 -07:00
Add unit test for the _Pragma operator
This commit is contained in:
parent
7fd7eae56c
commit
e261ac2121
3 changed files with 33 additions and 0 deletions
14
unit_tests/coverage.suite/pragma-operator.lsl
Normal file
14
unit_tests/coverage.suite/pragma-operator.lsl
Normal file
|
@ -0,0 +1,14 @@
|
|||
_Pragma("OPT inline")
|
||||
|
||||
string f(integer x) inline
|
||||
{
|
||||
return "ok";
|
||||
}
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
llOwnerSay(f(5));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue