aboutsummaryrefslogtreecommitdiff
path: root/test/cases/recursive_inline_function.1.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-10-20 12:48:13 +0300
committerVeikka Tuominen <git@vexu.eu>2022-10-20 20:11:12 +0300
commit07b6173cb8877ce22fe6cb754cfc17367989b11e (patch)
treef077aa490dfe8a2bf5c9926944b894caaa4320a7 /test/cases/recursive_inline_function.1.zig
parent7e946bc790c245242af3716199878cf99c369d48 (diff)
downloadzig-07b6173cb8877ce22fe6cb754cfc17367989b11e.tar.gz
zig-07b6173cb8877ce22fe6cb754cfc17367989b11e.zip
delete failing recursive test
Don't forget to add these back when solving #12973
Diffstat (limited to 'test/cases/recursive_inline_function.1.zig')
-rw-r--r--test/cases/recursive_inline_function.1.zig20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/cases/recursive_inline_function.1.zig b/test/cases/recursive_inline_function.1.zig
deleted file mode 100644
index 0b7dd56d38..0000000000
--- a/test/cases/recursive_inline_function.1.zig
+++ /dev/null
@@ -1,20 +0,0 @@
-// This additionally tests that the compile error reports the correct source location.
-// Without storing source locations relative to the owner decl, the compile error
-// here would be off by 2 bytes (from the "7" -> "999").
-pub fn main() void {
- const y = fibonacci(999);
- if (y - 21 != 0) unreachable;
-}
-
-inline fn fibonacci(n: usize) usize {
- if (n <= 2) return n;
- return fibonacci(n - 2) + fibonacci(n - 1);
-}
-
-// error
-//
-// :11:21: error: evaluation exceeded 1000 backwards branches
-// :11:21: note: use @setEvalBranchQuota() to raise the branch limit from 1000
-// :11:40: note: called from here (6 times)
-// :11:21: note: called from here (495 times)
-// :5:24: note: called from here