| 1 | const fns = [_](fn (i32) i32){ a, b, c }; |
| 2 | pub fn a(x: i32) i32 { |
| 3 | return x + 0; |
| 4 | } |
| 5 | pub fn b(x: i32) i32 { |
| 6 | return x + 1; |
| 7 | } |
| 8 | export fn c(x: i32) i32 { |
| 9 | return x + 2; |
| 10 | } |
| 11 | |
| 12 | export fn entry() usize { |
| 13 | return @sizeOf(@TypeOf(fns)); |
| 14 | } |
| 15 | |
| 16 | // error |
| 17 | // target=x86_64-linux |
| 18 | // |
| 19 | // :1:38: error: expected type 'fn (i32) i32', found 'fn (i32) callconv(.c) i32' |
| 20 | // :1:38: note: calling convention 'x86_64_sysv' cannot cast into calling convention 'auto' |