diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-09-15 14:07:35 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-09-15 14:09:08 -0400 |
| commit | b738cbdc768796b59b19a07a29a95892937d6f11 (patch) | |
| tree | e3e1088d9a45786655aa5c6e9938d458a5f0faa8 /test/run_tests.cpp | |
| parent | 3f05fdc8e8fdc25faec2ca51547404411b314ce1 (diff) | |
| download | zig-b738cbdc768796b59b19a07a29a95892937d6f11.tar.gz zig-b738cbdc768796b59b19a07a29a95892937d6f11.zip | |
fix compiler crash involving slice with const slice child
also fix compiler crash for multiple errors in main fn prototype
closes #191
Diffstat (limited to 'test/run_tests.cpp')
| -rw-r--r-- | test/run_tests.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp index 95fc6fc3d4..730b032758 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -1491,6 +1491,10 @@ pub fn f() { cstr[0] = 'W'; } )SOURCE", 1, ".tmp_source.zig:4:7: error: cannot assign to constant"); + + add_compile_fail_case("main function with bogus args type", R"SOURCE( +pub fn main(args: [][]bogus) -> %void {} + )SOURCE", 1, ".tmp_source.zig:2:23: error: use of undeclared identifier 'bogus'"); } ////////////////////////////////////////////////////////////////////////////// |
