add bad version string test case

master
Andrew Kelley 2015-11-30 02:14:54 -07:00
parent 8f0f318c39
commit 020f854f6f
2 changed files with 6 additions and 2 deletions

View File

@ -42,8 +42,7 @@ make
## Roadmap
* variables and parameters
* Export .so library
* variable declarations and assignment expressions
* Multiple files
* Type checking
* inline assembly and syscalls

View File

@ -186,6 +186,11 @@ fn a() {
fn b() {}
)SOURCE", 1, "Line 4, column 5: unreachable code");
add_compile_fail_case("bad version string", R"SOURCE(
#version("aoeu")
export executable "test";
)SOURCE", 1, "Line 2, column 1: invalid version string");
}
static void print_compiler_invokation(TestCase *test_case, Buf *zig_stderr) {