mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-13 21:26:16 +01:00
move stage2 compile errors out of special folder
This commit is contained in:
parent
0b4461d97b
commit
327fb798c3
16 changed files with 0 additions and 0 deletions
11
test/cases/compile_errors/slice_of_null_pointer.zig
Normal file
11
test/cases/compile_errors/slice_of_null_pointer.zig
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
comptime {
|
||||
var x: [*c]u8 = null;
|
||||
var runtime_len: usize = 0;
|
||||
var y = x[0..runtime_len];
|
||||
_ = y;
|
||||
}
|
||||
|
||||
// error
|
||||
// target=native
|
||||
//
|
||||
// :4:14: error: slice of null pointer
|
||||
Loading…
Add table
Add a link
Reference in a new issue