Commit 9193a3cdad

Andrew Kelley <superjoe30@gmail.com>
2016-08-31 01:06:02
stronger static eval recursive test
1 parent d44ca5b
Changed files (1)
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);