commit 9193a3cdadd2920d3a641b59708487e9ad127984 (tree) parent d44ca5baac54e36a08cfb1b122e5d0c6c0b194b7 Author: Andrew Kelley <superjoe30@gmail.com> Date: Tue, 30 Aug 2016 16:06:02 -0700 stronger static eval recursive test Diffstat:
| M | test/self_hosted.zig | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/self_hosted.zig b/test/self_hosted.zig @@ -938,9 +938,9 @@ fn makePoint(x: i32, y: i32) -> Point { #attribute("test") fn staticEvalRecursive() { - assert(seventh_fib_number == 21); + assert(some_data.len == 21); } -const seventh_fib_number = fibbonaci(7); +var some_data: [usize(fibbonaci(7))]u8 = undefined; fn fibbonaci(x: i32) -> i32 { if (x <= 1) return 1; return fibbonaci(x - 1) + fibbonaci(x - 2);