ir/tests/001.irt
2022-04-06 00:19:23 +03:00

22 lines
393 B
Plaintext

--TEST--
001: add function
--CODE--
{
l_1 = START(l_5);
int32_t d_2 = PARAM(l_1, "a", 0);
int32_t d_3 = PARAM(l_1, "b", 1);
int32_t d_4 = ADD(d_3, d_2);
l_5 = RETURN(l_1, d_4);
}
--EXPECT--
{
uintptr_t c_1 = 0;
bool c_2 = 0;
bool c_3 = 1;
l_1 = START(l_5);
int32_t d_2 = PARAM(l_1, "a", 0);
int32_t d_3 = PARAM(l_1, "b", 1);
int32_t d_4 = ADD(d_3, d_2);
l_5 = RETURN(l_1, d_4);
}