Sema: add and improve some callconv compile errors

This commit is contained in:
mlugg
2024-10-17 09:09:35 +01:00
parent 73f4c68005
commit 8d5ac6bdea
7 changed files with 25 additions and 13 deletions

View File

@@ -5,6 +5,6 @@ export fn entry3() callconv(.AAPCSVFP) void {}
// error
// target=x86_64-linux-none
//
// :1:30: error: callconv 'arm_apcs' only available on architectures 'arm', 'armeb', 'thumb', 'thumbeb'
// :2:30: error: callconv 'arm_aapcs' only available on architectures 'arm', 'armeb', 'thumb', 'thumbeb'
// :3:30: error: callconv 'arm_aapcs_vfp' only available on architectures 'arm', 'armeb', 'thumb', 'thumbeb'
// :1:30: error: calling convention 'arm_apcs' only available on architectures 'arm', 'armeb', 'thumb', 'thumbeb'
// :2:30: error: calling convention 'arm_aapcs' only available on architectures 'arm', 'armeb', 'thumb', 'thumbeb'
// :3:30: error: calling convention 'arm_aapcs_vfp' only available on architectures 'arm', 'armeb', 'thumb', 'thumbeb'

View File

@@ -4,4 +4,4 @@ export fn entry() callconv(.Interrupt) void {}
// backend=stage2
// target=aarch64-linux-none
//
// :1:29: error: callconv 'Interrupt' is only available on x86, x86_64, AVR, and MSP430, not aarch64
// :1:29: error: calling convention 'Interrupt' is only available on x86, x86_64, AVR, and MSP430, not aarch64

View File

@@ -4,4 +4,4 @@ export fn entry() callconv(.avr_signal) void {}
// backend=stage2
// target=x86_64-linux-none
//
// :1:29: error: callconv 'avr_signal' only available on architectures 'avr'
// :1:29: error: calling convention 'avr_signal' only available on architectures 'avr'

View File

@@ -18,6 +18,6 @@ export fn entry3() void {
// backend=stage2
// target=x86_64-linux-none
//
// :1:28: error: callconv 'x86_stdcall' only available on architectures 'x86'
// :2:28: error: callconv 'x86_fastcall' only available on architectures 'x86'
// :3:28: error: callconv 'x86_thiscall' only available on architectures 'x86'
// :1:28: error: calling convention 'x86_stdcall' only available on architectures 'x86'
// :2:28: error: calling convention 'x86_fastcall' only available on architectures 'x86'
// :3:28: error: calling convention 'x86_thiscall' only available on architectures 'x86'

View File

@@ -16,4 +16,4 @@ export fn signal_ret() callconv(.Signal) noreturn {}
// :3:51: error: 'x86_64_interrupt' calling convention supports up to 2 parameters, found 3
// :4:69: error: function with calling convention 'x86_64_interrupt' must return 'void' or 'noreturn'
// :8:24: error: parameters are not allowed with 'avr_signal' calling convention
// :9:34: error: callconv 'avr_signal' only available on architectures 'avr'
// :9:34: error: calling convention 'avr_signal' only available on architectures 'avr'

View File

@@ -8,4 +8,4 @@ comptime {
// backend=stage2
// target=native
//
// :1:29: error: 'noinline' function cannot have callconv 'inline'
// :1:29: error: 'noinline' function cannot have calling convention 'inline'