mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
16 lines
180 B
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
|