diff options
Diffstat (limited to 'test/compile_errors.zig')
| -rw-r--r-- | test/compile_errors.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig index cc28f29f26..64ee69ba18 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -1,6 +1,10 @@ const tests = @import("tests.zig"); pub fn addCases(cases: &tests.CompileErrorContext) void { + cases.add("function with invalid return type", + \\export fn foo() boid {} + , ".tmp_source.zig:1:17: error: use of undeclared identifier 'boid'"); + cases.add("function with non-extern enum parameter", \\const Foo = enum { A, B, C }; \\export fn entry(foo: Foo) void { } |
