mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
15 lines
166 B
Plaintext
15 lines
166 B
Plaintext
module test;
|
|
|
|
<*
|
|
@param [out] bar
|
|
*>
|
|
fn void foo(int[2]* bar)
|
|
{
|
|
(*bar)[0] = 1;
|
|
bar.[0]; // #error: 'out' parameters may not be read
|
|
}
|
|
|
|
fn int main()
|
|
{
|
|
return 0;
|
|
} |