]> git.lizzy.rs Git - rust.git/blob - src/test/ui/abi/unsupported.rs
Merge commit 'cd4810de42c57b64b74dae09c530a4c3a41f87b9' into libgccjit-codegen
[rust.git] / src / test / ui / abi / unsupported.rs
1 // revisions: x64 i686 aarch64
2 //
3 // [x64] needs-llvm-components: x86
4 // [x64]compile-flags: --target=x86_64-unknown-linux-gnu --crate-type=rlib
5 // [i686] needs-llvm-components: x86
6 // [i686]compile-flags: --target=i686-unknown-linux-gnu --crate-type=rlib
7 // [aarch64] needs-llvm-components: aarch64
8 // [aarch64]compile-flags: --target=aarch64-unknown-linux-gnu --crate-type=rlib
9 #![no_core]
10 #![feature(
11     no_core,
12     lang_items,
13     abi_ptx,
14     abi_msp430_interrupt,
15     abi_avr_interrupt,
16     abi_thiscall,
17     abi_amdgpu_kernel,
18     wasm_abi,
19     abi_x86_interrupt
20 )]
21 #[lang="sized"]
22 trait Sized { }
23
24 extern "ptx-kernel" fn ptx() {}
25 //~^ ERROR is not a supported ABI
26 extern "amdgpu-kernel" fn amdgpu() {}
27 //~^ ERROR is not a supported ABI
28 extern "wasm" fn wasm() {}
29 //~^ ERROR is not a supported ABI
30 extern "aapcs" fn aapcs() {}
31 //[x64]~^ ERROR is not a supported ABI
32 //[i686]~^^ ERROR is not a supported ABI
33 extern "msp430-interrupt" fn msp430() {}
34 //~^ ERROR is not a supported ABI
35 extern "avr-interrupt" fn avr() {}
36 //~^ ERROR is not a supported ABI
37 extern "x86-interrupt" fn x86() {}
38 //[aarch64]~^ ERROR is not a supported ABI
39 extern "stdcall" fn stdcall() {}
40 //[x64]~^ WARN use of calling convention not supported
41 //[x64]~^^ WARN this was previously accepted
42 //[aarch64]~^^^ WARN use of calling convention not supported
43 //[aarch64]~^^^^ WARN this was previously accepted
44 extern "thiscall" fn thiscall() {}
45 //[x64]~^ WARN use of calling convention not supported
46 //[x64]~^^ WARN this was previously accepted
47 //[aarch64]~^^^ WARN use of calling convention not supported
48 //[aarch64]~^^^^ WARN this was previously accepted