aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/basic.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/behavior/basic.zig')
-rw-r--r--test/behavior/basic.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/behavior/basic.zig b/test/behavior/basic.zig
index 23b0970191..ae4cb26354 100644
--- a/test/behavior/basic.zig
+++ b/test/behavior/basic.zig
@@ -246,7 +246,7 @@ fn testTakeAddressOfParameter(f: f32) !void {
}
test "pointer to void return type" {
- testPointerToVoidReturnType() catch unreachable;
+ try testPointerToVoidReturnType();
}
fn testPointerToVoidReturnType() anyerror!void {
const a = testPointerToVoidReturnType2();