adapt tests
This commit is contained in:
parent
9eb0fd98c6
commit
1422ac9a8f
6 changed files with 14 additions and 2 deletions
|
@ -12,6 +12,9 @@
|
||||||
// llvm. Also checks that the abi-sysv64 feature gate allows usage
|
// llvm. Also checks that the abi-sysv64 feature gate allows usage
|
||||||
// of the sysv64 abi.
|
// of the sysv64 abi.
|
||||||
|
|
||||||
|
// ignore-arm
|
||||||
|
// ignore-aarch64
|
||||||
|
|
||||||
// compile-flags: -C no-prepopulate-passes
|
// compile-flags: -C no-prepopulate-passes
|
||||||
|
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-arm
|
||||||
|
// ignore-aarch64
|
||||||
|
|
||||||
// compile-flags: -C no-prepopulate-passes
|
// compile-flags: -C no-prepopulate-passes
|
||||||
|
|
||||||
struct Foo;
|
struct Foo;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
fn baz(f: extern "stdcall" fn(usize, ...)) {
|
fn baz(f: extern "cdecl" fn(usize, ...)) {
|
||||||
//~^ ERROR: variadic function must have C calling convention
|
//~^ ERROR: variadic function must have C calling convention
|
||||||
f(22, 44);
|
f(22, 44);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
extern "stdcall" {
|
extern "cdecl" {
|
||||||
fn printf(_: *const u8, ...); //~ ERROR: variadic function must have C calling convention
|
fn printf(_: *const u8, ...); //~ ERROR: variadic function must have C calling convention
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-arm
|
||||||
|
// ignore-aarch64
|
||||||
|
|
||||||
trait A {
|
trait A {
|
||||||
extern "fastcall" fn test1(i: i32);
|
extern "fastcall" fn test1(i: i32);
|
||||||
extern fn test2(i: i32);
|
extern fn test2(i: i32);
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-arm
|
||||||
|
// ignore-aarch64
|
||||||
|
|
||||||
#![feature(abi_vectorcall)]
|
#![feature(abi_vectorcall)]
|
||||||
|
|
||||||
trait A {
|
trait A {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue