ir/tests/c/not_003.irt

20 lines
249 B
Plaintext
Raw Normal View History

2023-10-12 14:01:27 +02:00
--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;
}