aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-02-02 19:20:02 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-02-02 19:35:02 -0700
commitd3de73739f88daa05cc7a93f12c262b27a987182 (patch)
treea5b2835b1bf22aff2fa172d448a33ad901eb348c /test/run_tests.cpp
parent8058b5e0a92e4eac05ba19aabed1fc041353c69b (diff)
downloadzig-d3de73739f88daa05cc7a93f12c262b27a987182.tar.gz
zig-d3de73739f88daa05cc7a93f12c262b27a987182.zip
fix various semantic analyzer crashes
Diffstat (limited to 'test/run_tests.cpp')
-rw-r--r--test/run_tests.cpp8
1 files changed, 2 insertions, 6 deletions
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(...) {}