Files
zig/test/cases/compile_errors/export_generic_function.zig
mlugg 4be0cf30fc test: update for CallingConvention changes
This also includes some compiler and std changes to correct error
messages which weren't properly updated before.
2024-10-19 19:15:23 +01:00

10 lines
197 B
Zig

export fn foo(num: anytype) i32 {
_ = num;
return 0;
}
// error
// target=x86_64-linux
//
// :1:15: error: generic parameters not allowed in function with calling convention 'x86_64_sysv'