mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Restore some out checking.
This commit is contained in:
@@ -5,9 +5,11 @@
|
||||
*>
|
||||
fn void tes2t(char* z, char[] out_data, char[] in_data) {
|
||||
z[0] = 2;
|
||||
z[0] += 1; // error: 'out' parameters may not be read
|
||||
z[0] += 1; // #error: 'out' parameters may not be read
|
||||
out_data[0] = 3;
|
||||
out_data[0] *= 1; // error: 'out' parameters may not be read
|
||||
out_data[0..3]; // error: 'out' parameters may not be read
|
||||
out_data[0] *= 1; // #error: 'out' parameters may not be read
|
||||
out_data[0..3];
|
||||
out_data[0..3] = 23;
|
||||
out_data[0..3] = out_data[0..3]; // #error: parameters may not be read
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user