test cases: returning undefined [:0]const u8

Closes #5947
This commit is contained in:
r00ster91 2023-05-28 02:40:23 +02:00
parent 78da0e40a8
commit 18fe951e24

View File

@ -0,0 +1,11 @@
fn foo() [:0]const u8 {
return undefined;
}
pub fn main() void {
var guid: [*:0]const u8 = undefined;
guid = foo();
}
// run
// backend=llvm
// target=native