diff options
| author | Tamme Dittrich <tamme@tweedegolf.com> | 2024-08-07 15:48:16 +0200 |
|---|---|---|
| committer | Tamme Dittrich <tamme@tweedegolf.com> | 2024-09-23 14:04:22 +0200 |
| commit | 47293c1234e615045b5bd6fbbf867ff6b757fd1f (patch) | |
| tree | 14f3c568ec91ed3c0794d886e17cb97951d8a080 /tests/debuginfo | |
| parent | 66b0b29e65c77e5801c308e725a233c0728df300 (diff) | |
| download | rust-47293c1234e615045b5bd6fbbf867ff6b757fd1f.tar.gz rust-47293c1234e615045b5bd6fbbf867ff6b757fd1f.zip | |
Check ABI target compatibility for function pointers
This check was previously only performed on functions not function pointers. Co-authored-by: Folkert <folkert@folkertdev.nl>
Diffstat (limited to 'tests/debuginfo')
| -rw-r--r-- | tests/debuginfo/type-names.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/debuginfo/type-names.rs b/tests/debuginfo/type-names.rs index 6831786c228..4caaf3fc97f 100644 --- a/tests/debuginfo/type-names.rs +++ b/tests/debuginfo/type-names.rs @@ -17,7 +17,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 @@ -372,7 +372,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; |
