add bad version string test case
parent
8f0f318c39
commit
020f854f6f
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue