fix crash when compiling empty file

closes #90
This commit is contained in:
Andrew Kelley
2016-01-27 12:06:47 -07:00
parent fa1ea6062b
commit fe0c6a3df9
2 changed files with 8 additions and 2 deletions

View File

@@ -1680,6 +1680,9 @@ c_import {
)SOURCE", 2, ".tmp_source.zig:2:1: error: C import failed",
".h:1:10: error: 'bogus.h' file not found");
add_compile_fail_case("empty file", "",
1, ".tmp_source.zig:1:1: error: missing export declaration and output name not provided");
}
static void print_compiler_invocation(TestCase *test_case) {