ir/tests/c/not_003.irt
Dmitry Stogov dd227dfa25 New tests
2023-10-12 15:01:27 +03:00

20 lines
249 B
Plaintext

--TEST--
003: not function
--ARGS--
--emit-c
--CODE--
{
l_1 = START(l_4);
uint32_t x = PARAM(l_1, "x", 1);
bool ret = NOT(x);
l_4 = RETURN(l_1, ret);
}
--EXPECT--
bool test(uint32_t x)
{
uint32_t d_1 = x;
bool d_2;
d_2 = !d_1;
return d_2;
}