mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
12 lines
170 B
C
12 lines
170 B
C
/**
|
|
* @param [in] x
|
|
**/
|
|
fn void test(int* x)
|
|
{
|
|
x[1] = 123; // #error: 'in' parameters may not be assigned to
|
|
}
|
|
fn int main()
|
|
{
|
|
test(&&int[3]{ 1, 2, 1 });
|
|
return 0;
|
|
} |