| 1 | fn foo() callconv(.{ .x86_64_sysv = .{ .incoming_stack_alignment = 32 } }) void {} |
| 2 | const Bar = *const fn () callconv(.{ .x86_64_sysv = .{ .incoming_stack_alignment = 16 } }) void; |
| 3 | export var p: Bar = &foo; |
| 4 | |
| 5 | // error |
| 6 | // target=x86_64-linux-none |
| 7 | // |
| 8 | // :3:21: error: expected type '*const fn () callconv(.{ .x86_64_sysv = .{ .incoming_stack_alignment = 16 } }) void', found '*const fn () callconv(.{ .x86_64_sysv = .{ .incoming_stack_alignment = 32 } }) void' |
| 9 | // :3:21: note: pointer type child 'fn () callconv(.{ .x86_64_sysv = .{ .incoming_stack_alignment = 32 } }) void' cannot cast into pointer type child 'fn () callconv(.{ .x86_64_sysv = .{ .incoming_stack_alignment = 16 } }) void' |
| 10 | // :3:21: note: calling convention 'x86_64_sysv' cannot cast into calling convention 'x86_64_sysv' |