Add unit test for the _Pragma operator

This commit is contained in:
Sei Lisa 2019-01-15 20:38:19 +01:00
parent 7fd7eae56c
commit e261ac2121
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,14 @@
_Pragma("OPT inline")
string f(integer x) inline
{
return "ok";
}
default
{
state_entry()
{
llOwnerSay(f(5));
}
}

View file

@ -0,0 +1,18 @@
default
{
state_entry()
{
string ___ret__00001;
{
integer x = 5;
{
{
___ret__00001 = "ok";
jump ___rtl__00001;
}
}
}
@___rtl__00001;
llOwnerSay(___ret__00001);
}
}

View file

@ -0,0 +1 @@
main.py - -O clear,processpre