mirror of
https://github.com/danog/ir.git
synced 2024-12-11 16:59:46 +01:00
18 lines
242 B
Plaintext
18 lines
242 B
Plaintext
--TEST--
|
|
001: trap function
|
|
--ARGS--
|
|
--emit-llvm
|
|
--CODE--
|
|
{
|
|
l_1 = START(l_3);
|
|
int32_t d_2 = PARAM(l_1, "x", 1);
|
|
l_2 = TRAP(l_1);
|
|
l_3 = RETURN(l_2, d_2);
|
|
}
|
|
--EXPECT--
|
|
define i32 @test(i32 %d2)
|
|
{
|
|
call void @llvm.debugtrap()
|
|
ret i32 %d2
|
|
}
|