Files
c3c/test/test_suite/asm/naked_rethrow.c3
2025-07-30 01:01:56 +02:00

19 lines
317 B
Plaintext

import std;
fn void main()
{
(void)test();
}
fn ulong? test() @naked @noinline
{
int? z;
z!; // #error: Rethrow is not allowed in a '@naked' function
unreachable();
}
fn ulong test2(int a) @naked @noinline
{
int x = a; // #error: Parameters may not be directly accessed in '@naked' functions
unreachable();
}