tests: Change "fastcall" to "system" in some tests
Lets the test still work on different architectures.
This commit is contained in:
parent
d13a431a6c
commit
643a9d233b
2 changed files with 4 additions and 4 deletions
|
|
@ -19,7 +19,7 @@
|
|||
// gdb-check:type = type_names::GenericStruct<type_names::mod1::Struct2, type_names::mod1::mod2::Struct3>
|
||||
|
||||
// gdb-command:whatis generic_struct2
|
||||
// gdb-check:type = type_names::GenericStruct<type_names::Struct1, extern "fastcall" fn(isize) -> usize>
|
||||
// gdb-check:type = type_names::GenericStruct<type_names::Struct1, extern "system" fn(isize) -> usize>
|
||||
|
||||
// gdb-command:whatis mod_struct
|
||||
// gdb-check:type = type_names::mod1::Struct2
|
||||
|
|
@ -379,7 +379,7 @@ fn main() {
|
|||
let simple_struct = Struct1;
|
||||
let generic_struct1: GenericStruct<mod1::Struct2, mod1::mod2::Struct3> =
|
||||
GenericStruct(PhantomData);
|
||||
let generic_struct2: GenericStruct<Struct1, extern "fastcall" fn(isize) -> usize> =
|
||||
let generic_struct2: GenericStruct<Struct1, extern "system" fn(isize) -> usize> =
|
||||
GenericStruct(PhantomData);
|
||||
let mod_struct = mod1::Struct2;
|
||||
|
||||
|
|
|
|||
|
|
@ -440,7 +440,7 @@ trait TraitAddExternModifier {
|
|||
|
||||
// Change extern "C" to extern "stdcall"
|
||||
#[cfg(any(cfail1,cfail4))]
|
||||
trait TraitChangeExternCToRustIntrinsic {
|
||||
trait TraitChangeExternCToExternSystem {
|
||||
// --------------------------------------------------------------
|
||||
// -------------------------
|
||||
// --------------------------------------------------------------
|
||||
|
|
@ -458,7 +458,7 @@ trait TraitChangeExternCToRustIntrinsic {
|
|||
#[rustc_clean(cfg="cfail3")]
|
||||
#[rustc_clean(except="opt_hir_owner_nodes,fn_sig", cfg="cfail5")]
|
||||
#[rustc_clean(cfg="cfail6")]
|
||||
extern "stdcall" fn method();
|
||||
extern "system" fn method();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue