diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-03-05 12:39:32 +0000 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-04-12 12:06:19 -0400 |
| commit | ccf670c2b04ebeb9db43eb9f5c47c6cf03e4b1d0 (patch) | |
| tree | 3f7899bf6231500782af185ffe701ee66793e226 /test/behavior/eval.zig | |
| parent | 602029bb2fb78048e46136784e717b57b8de8f2c (diff) | |
| download | zig-ccf670c2b04ebeb9db43eb9f5c47c6cf03e4b1d0.tar.gz zig-ccf670c2b04ebeb9db43eb9f5c47c6cf03e4b1d0.zip | |
Zir: implement explicit block_comptime instruction
Resolves: #7056
Diffstat (limited to 'test/behavior/eval.zig')
| -rw-r--r-- | test/behavior/eval.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/behavior/eval.zig b/test/behavior/eval.zig index 214f2beb07..302de93591 100644 --- a/test/behavior/eval.zig +++ b/test/behavior/eval.zig @@ -181,9 +181,7 @@ fn testTryToTrickEvalWithRuntimeIf(b: bool) usize { const result = if (b) false else true; _ = result; } - comptime { - return i; - } + return comptime i; } test "@setEvalBranchQuota" { |
