correct caching and add test for missing fn name

This commit is contained in:
Vexu
2019-11-30 19:14:45 +02:00
committed by Andrew Kelley
parent a0ca30ce01
commit 20bcdab462
2 changed files with 9 additions and 0 deletions

View File

@@ -6,6 +6,13 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
\\export async fn foo() void {}
, "tmp.zig:1:1: error: exported function cannot be async");
cases.addExe(
"main missing name",
\\pub fn (main) void {}
,
"tmp.zig:1:5: error: missing function name",
);
cases.addCase(x: {
var tc = cases.create("@newStackCall on unsupported target",
\\export fn entry() void {