aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/export_generic_function.zig
blob: 4ffbad9df7d972e74364e91448c2cae9a334a218 (plain)
1
2
3
4
5
6
7
8
9
10
export fn foo(num: anytype) i32 {
    _ = num;
    return 0;
}

// error
// backend=stage2
// target=native
//
// :1:15: error: generic parameters not allowed in function with calling convention 'C'