mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
add test for 74bdc1d1f8
This commit is contained in:
parent
b0ceea1831
commit
ea3d9d5c53
@ -1,6 +1,15 @@
|
||||
const tests = @import("tests.zig");
|
||||
|
||||
pub fn addCases(cases: *tests.CompileErrorContext) void {
|
||||
cases.addTest(
|
||||
"export generic function",
|
||||
\\export fn foo(num: var) i32 {
|
||||
\\ return 0;
|
||||
\\}
|
||||
,
|
||||
".tmp_source.zig:1:15: error: parameter of type 'var' not allowed in function with calling convention 'ccc'",
|
||||
);
|
||||
|
||||
cases.addTest(
|
||||
"C pointer to c_void",
|
||||
\\export fn a() void {
|
||||
|
Loading…
Reference in New Issue
Block a user