zig/doc/langref/test_expression_ignored.zig

10 lines
106 B
Zig
Raw Normal View History

test "ignoring expression value" {
foo();
}
fn foo() i32 {
return 1234;
}
// test_error=ignored