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

20 lines
243 B
Plaintext

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