fix llvm assertion and missing compile error

This commit is contained in:
Andrew Kelley
2018-09-10 22:44:27 -04:00
parent 7c9f7b72c5
commit 52f4e934a9
3 changed files with 11 additions and 1 deletions

View File

@@ -1291,6 +1291,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
\\
\\extern fn bar(x: *void) void { }
,
".tmp_source.zig:1:30: error: parameter of type '*void' has 0 bits; not allowed in function with calling convention 'ccc'",
".tmp_source.zig:7:18: error: parameter of type '*void' has 0 bits; not allowed in function with calling convention 'ccc'",
);