authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-10-20 12:48:13+03:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-10-20 20:11:12+03:00
log07b6173cb8877ce22fe6cb754cfc17367989b11e
treef077aa490dfe8a2bf5c9926944b894caaa4320a7
parent7e946bc790c245242af3716199878cf99c369d48

delete failing recursive test

Don't forget to add these back when solving #12973

2 files changed, 0 insertions(+), 33 deletions(-)

test/cases/recursive_inline_function.0.zig deleted-13
......@@ -1,13 +0,0 @@
1pub fn main() void {
2 const y = fibonacci(7);
3 if (y - 21 != 0) unreachable;
4}
5
6inline fn fibonacci(n: usize) usize {
7 if (n <= 2) return n;
8 return fibonacci(n - 2) + fibonacci(n - 1);
9}
10
11// run
12// target=x86_64-linux,arm-linux,wasm32-wasi
13//
test/cases/recursive_inline_function.1.zig deleted-20
......@@ -1,20 +0,0 @@
1// This additionally tests that the compile error reports the correct source location.
2// Without storing source locations relative to the owner decl, the compile error
3// here would be off by 2 bytes (from the "7" -> "999").
4pub fn main() void {
5 const y = fibonacci(999);
6 if (y - 21 != 0) unreachable;
7}
8
9inline fn fibonacci(n: usize) usize {
10 if (n <= 2) return n;
11 return fibonacci(n - 2) + fibonacci(n - 1);
12}
13
14// error
15//
16// :11:21: error: evaluation exceeded 1000 backwards branches
17// :11:21: note: use @setEvalBranchQuota() to raise the branch limit from 1000
18// :11:40: note: called from here (6 times)
19// :11:21: note: called from here (495 times)
20// :5:24: note: called from here