Depends on #7555.
exportfn_start() noreturn {
consty=fibonacci(999);
exit(y-21);
}
inlinefnfibonacci(n: usize) usize {
if (n<=2) returnn;
returnfibonacci(n-2) +fibonacci(n-1);
}
fnexit(code: usize) noreturn {
asmvolatile ("syscall"
:
: [number] "{rax}" (231),
[arg1] "{rdi}" (code)
: "rcx", "r11", "memory"
);
unreachable;
}Output:
[nix-shell:~/dev/zig/build]$ ./zig-cache/bin/zig build-exe test.zig test.zig:8:12: error: evaluation exceeded 1000 backwards branches
Expected output:
Same thing but it says note: called from here for every function call.
Depends on #7555.
Output:
Expected output:
Same thing but it says
note: called from herefor every function call.