mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
19 lines
317 B
Plaintext
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();
|
|
} |