1 // revisions: x64 i686 aarch64 arm
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
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