]> git.lizzy.rs Git - rust.git/blob - src/test/ui/abi/unsupported.rs
Auto merge of #90273 - nbdd0121:const, r=fee1-dead
[rust.git] / src / test / ui / abi / unsupported.rs
1 // revisions: x64 i686 aarch64 arm
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 // [arm] needs-llvm-components: arm
10 // [arm] compile-flags: --target=armv7-unknown-linux-gnueabihf --crate-type=rlib
11 #![no_core]
12 #![feature(
13     no_core,
14     lang_items,
15     abi_ptx,
16     abi_msp430_interrupt,
17     abi_avr_interrupt,
18     abi_thiscall,
19     abi_amdgpu_kernel,
20     wasm_abi,
21     abi_x86_interrupt
22 )]
23 #[lang="sized"]
24 trait Sized { }
25
26 extern "ptx-kernel" fn ptx() {}
27 //~^ ERROR is not a supported ABI
28 extern "amdgpu-kernel" fn amdgpu() {}
29 //~^ ERROR is not a supported ABI
30 extern "wasm" fn wasm() {}
31 //~^ ERROR is not a supported ABI
32 extern "aapcs" fn aapcs() {}
33 //[x64]~^ ERROR is not a supported ABI
34 //[i686]~^^ ERROR is not a supported ABI
35 //[aarch64]~^^^ ERROR is not a supported ABI
36 extern "msp430-interrupt" fn msp430() {}
37 //~^ ERROR is not a supported ABI
38 extern "avr-interrupt" fn avr() {}
39 //~^ ERROR is not a supported ABI
40 extern "x86-interrupt" fn x86() {}
41 //[aarch64]~^ ERROR is not a supported ABI
42 //[arm]~^^ ERROR is not a supported ABI
43 extern "thiscall" fn thiscall() {}
44 //[x64]~^ ERROR is not a supported ABI
45 //[aarch64]~^^ ERROR is not a supported ABI
46 //[arm]~^^^ ERROR is not a supported ABI
47 extern "stdcall" fn stdcall() {}
48 //[x64]~^ WARN use of calling convention not supported
49 //[x64]~^^ WARN this was previously accepted
50 //[aarch64]~^^^ WARN use of calling convention not supported
51 //[aarch64]~^^^^ WARN this was previously accepted
52 //[arm]~^^^^^ WARN use of calling convention not supported
53 //[arm]~^^^^^^ WARN this was previously accepted