ir/tests/c/conv_008.irt

20 lines
256 B
Plaintext
Raw Normal View History

2022-05-20 08:00:13 +02:00
--TEST--
008: type conversion FP2FP
--ARGS--
--emit-c
--CODE--
{
l_1 = START(l_4);
float x = PARAM(l_1, "x", 1);
double ret = FP2FP(x);
2022-05-20 08:00:13 +02:00
l_4 = RETURN(l_1, ret);
}
--EXPECT--
double test(float x)
{
float d_1 = x;
double d_2;
d_2 = d_1;
return d_2;
}