diff options
| author | Jacob G-W <jacoblevgw@gmail.com> | 2021-06-09 21:35:42 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-06-21 17:03:03 -0700 |
| commit | 641ecc260f43ffb2398acb80cbd141535dbbb03d (patch) | |
| tree | 87455d3b460f517ad35bcda2b3a2e38599dd4aa1 /test/behavior/eval.zig | |
| parent | d34a1ccb0ea75ba31f374b8b2d34e18326b147b1 (diff) | |
| download | zig-641ecc260f43ffb2398acb80cbd141535dbbb03d.tar.gz zig-641ecc260f43ffb2398acb80cbd141535dbbb03d.zip | |
std, src, doc, test: remove unused variables
Diffstat (limited to 'test/behavior/eval.zig')
| -rw-r--r-- | test/behavior/eval.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/behavior/eval.zig b/test/behavior/eval.zig index f86ee79761..5f186a8825 100644 --- a/test/behavior/eval.zig +++ b/test/behavior/eval.zig @@ -184,6 +184,7 @@ fn testTryToTrickEvalWithRuntimeIf(b: bool) usize { comptime var i: usize = 0; inline while (i < 10) : (i += 1) { const result = if (b) false else true; + _ = result; } comptime { return i; @@ -195,6 +196,7 @@ test "inlined loop has array literal with elided runtime scope on first iteratio comptime var i: usize = 0; inline while (i < 2) : (i += 1) { const result = if (i == 0) [1]i32{2} else runtime; + _ = result; } comptime { try expect(i == 2); |
