aboutsummaryrefslogtreecommitdiff
path: root/test/cases/variable_shadowing.6.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-11-11 12:05:38 +0000
committermlugg <mlugg@mlugg.co.uk>2024-11-11 12:22:48 +0000
commitca12e4f33e9030e5e724aae2f6dda9f2d87dccf6 (patch)
treee50211d40d249c16c231d0f4331a815b1a42b056 /test/cases/variable_shadowing.6.zig
parent560d6b99d5be8e906b7d8d70a2b2e1f1d4da4f89 (diff)
downloadzig-ca12e4f33e9030e5e724aae2f6dda9f2d87dccf6.tar.gz
zig-ca12e4f33e9030e5e724aae2f6dda9f2d87dccf6.zip
test: remove old-style incremental cases, add a few new incremental cases
These cases have been disabled for a while, and we have transitioned to using a compact file format for incremental test cases. I was originally planning to port all of these cases, but the vast majority aren't testing anything interesting, so it wasn't worth the effort. I did look through each one; anything interesting being tested has been extracted into a new case in `test/incremental/`. Two of the new tests are currently failing with the self-hosted ELF linker, and thus are currently only enabled with the C backend. Resolves: #12844
Diffstat (limited to 'test/cases/variable_shadowing.6.zig')
-rw-r--r--test/cases/variable_shadowing.6.zig11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/cases/variable_shadowing.6.zig b/test/cases/variable_shadowing.6.zig
deleted file mode 100644
index a3ae7bc346..0000000000
--- a/test/cases/variable_shadowing.6.zig
+++ /dev/null
@@ -1,11 +0,0 @@
-pub fn main() void {
- var i = 0;
- while ("n") |bruh| {
- _ = bruh;
- } else |i| {}
-}
-
-// error
-//
-// :5:13: error: capture 'i' shadows local variable from outer scope
-// :2:9: note: previous declaration here