mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +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
|