@@ -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 { }
|
||||
|
||||
Reference in New Issue
Block a user