zig/doc/langref/test_void_ignored.zig

16 lines
180 B
Zig

test "void is ignored" {
returnsVoid();
}
test "explicitly ignoring expression value" {
_ = foo();
}
fn returnsVoid() void {}
fn foo() i32 {
return 1234;
}
// test