mirror of
https://github.com/danog/ir.git
synced 2024-12-02 17:55:40 +01:00
18 lines
255 B
Plaintext
18 lines
255 B
Plaintext
--TEST--
|
|
001: copy function
|
|
--ARGS--
|
|
--emit-llvm
|
|
--CODE--
|
|
{
|
|
l_1 = START(l_2);
|
|
int32_t d_2 = PARAM(l_1, "x", 1);
|
|
int32_t d_3 = COPY(d_2, 1);
|
|
l_2 = RETURN(l_1, d_3);
|
|
}
|
|
--EXPECT--
|
|
define i32 @test(i32 %d2)
|
|
{
|
|
%d3 = bitcast i32 %d2 to i32
|
|
ret i32 %d3
|
|
}
|