mirror of
https://github.com/danog/ir.git
synced 2024-11-30 04:39:43 +01:00
22 lines
315 B
Plaintext
22 lines
315 B
Plaintext
--TEST--
|
|
003: Constant Folding
|
|
--ARGS--
|
|
--save --dump-after-load
|
|
--CODE--
|
|
{
|
|
int32_t c_4 = 1;
|
|
l_1 = START(l_3);
|
|
int32_t d_2 = ADD(c_4, c_4);
|
|
l_3 = RETURN(l_1, d_2);
|
|
}
|
|
--EXPECT--
|
|
{
|
|
uintptr_t c_1 = 0;
|
|
bool c_2 = 0;
|
|
bool c_3 = 1;
|
|
int32_t c_4 = 1;
|
|
int32_t c_5 = 2;
|
|
l_1 = START(l_2);
|
|
l_2 = RETURN(l_1, c_5);
|
|
}
|