| author | |
| committer | |
| log | 18fe951e24e55c7c732c3f1fc6bf412d7c4e2710 |
| tree | 484334c67049468148ca90244cf2c8bbb27a86db |
| parent | 78da0e40a8336dcd140ee2cf04aa6ee3166e67f3 |
Closes #59471 files changed, 11 insertions(+), 0 deletions(-)
test/cases/returning_undefined_sentinel_terminated_const_u8_slice.zig created+11| ... | @@ -0,0 +1,11 @@ | ||
| 1 | fn foo() [:0]const u8 { | ||
| 2 | return undefined; | ||
| 3 | } | ||
| 4 | pub fn main() void { | ||
| 5 | var guid: [*:0]const u8 = undefined; | ||
| 6 | guid = foo(); | ||
| 7 | } | ||
| 8 | |||
| 9 | // run | ||
| 10 | // backend=llvm | ||
| 11 | // target=native | ||