mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-12 06:53:05 +00:00
adapt tests
This commit is contained in:
parent
9eb0fd98c6
commit
1422ac9a8f
@ -12,6 +12,9 @@
|
||||
// llvm. Also checks that the abi-sysv64 feature gate allows usage
|
||||
// of the sysv64 abi.
|
||||
|
||||
// ignore-arm
|
||||
// ignore-aarch64
|
||||
|
||||
// compile-flags: -C no-prepopulate-passes
|
||||
|
||||
#![crate_type = "lib"]
|
||||
|
@ -8,6 +8,9 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-arm
|
||||
// ignore-aarch64
|
||||
|
||||
// compile-flags: -C no-prepopulate-passes
|
||||
|
||||
struct Foo;
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// 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
|
||||
f(22, 44);
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern "stdcall" {
|
||||
extern "cdecl" {
|
||||
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
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-arm
|
||||
// ignore-aarch64
|
||||
|
||||
trait A {
|
||||
extern "fastcall" fn test1(i: i32);
|
||||
extern fn test2(i: i32);
|
||||
|
@ -8,6 +8,9 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-arm
|
||||
// ignore-aarch64
|
||||
|
||||
#![feature(abi_vectorcall)]
|
||||
|
||||
trait A {
|
||||
|
Loading…
Reference in New Issue
Block a user