From d3de73739f88daa05cc7a93f12c262b27a987182 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 2 Feb 2016 19:20:02 -0700 Subject: fix various semantic analyzer crashes --- test/run_tests.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'test/run_tests.cpp') diff --git a/test/run_tests.cpp b/test/run_tests.cpp index 946f55f9fd..b8cc6fc210 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -1718,14 +1718,10 @@ fn f() { i[i] = i[i]; bad[bad] = bad[bad]; } - )SOURCE", 8, ".tmp_source.zig:4:5: error: use of undeclared identifier 'i'", + )SOURCE", 4, ".tmp_source.zig:4:5: error: use of undeclared identifier 'i'", ".tmp_source.zig:4:7: error: use of undeclared identifier 'i'", - ".tmp_source.zig:4:12: error: use of undeclared identifier 'i'", - ".tmp_source.zig:4:14: error: use of undeclared identifier 'i'", ".tmp_source.zig:5:8: error: array access of non-array", - ".tmp_source.zig:5:9: error: expected type 'isize', got 'bool'", - ".tmp_source.zig:5:19: error: array access of non-array", - ".tmp_source.zig:5:20: error: expected type 'isize', got 'bool'"); + ".tmp_source.zig:5:9: error: expected type 'isize', got 'bool'"); add_compile_fail_case("variadic functions only allowed in extern", R"SOURCE( fn f(...) {} -- cgit v1.2.3