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.
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
// Functions that can't be computed at compile time
|
|
default
|
|
{
|
|
timer()
|
|
{
|
|
llSetPrimitiveParams( // we need a function that causes side effects,
|
|
// so that it isn't optimized out
|
|
[ llFrand(1)
|
|
, llFrand(1.1754943508222875e-38)
|
|
, llGenerateKey()
|
|
, llAvatarOnLinkSitTarget(2)
|
|
, llEdgeOfWorld(<1,1,1>, <1,1,1>)
|
|
, llGetAgentInfo(TEXTURE_BLANK)
|
|
, llGetAgentLanguage(TEXTURE_BLANK)
|
|
, llGetAgentList(AGENT_LIST_PARCEL, [])
|
|
, llGetAgentSize(TEXTURE_DEFAULT)
|
|
, llGetAlpha(0)
|
|
, llGetAnimation(TEXTURE_BLANK)
|
|
, llGetAnimationList(TEXTURE_BLANK)
|
|
, llGetBoundingBox(TEXTURE_BLANK)
|
|
, llGetColor(0)
|
|
, llGetDisplayName(TEXTURE_BLANK)
|
|
, llGetEnv("estate_name")
|
|
, llXorBase64Strings("++++", "?")
|
|
, llXorBase64StringsCorrect("++++", "?")
|
|
, llXorBase64("++++", "?")
|
|
, llBase64ToInteger("ABC")
|
|
, llAbs(-2147483648)
|
|
]);
|
|
}
|
|
}
|