Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
export_function_with_comptime_parameter.zig
pretty
plain
permalink
blame
history
•
8 lines
•
204 B
1
export fn foo(comptime x: anytype, y: i32) i32 {
2
return x + y;
3
}
4
5
// error
6
// target=x86_64-linux
7
//
8
// :1:15: error: comptime parameters not allowed in function with calling convention 'x86_64_sysv'