2017-01-11 02:25:44 +01:00
|
|
|
// gate-test-intrinsics
|
2025-02-24 09:26:54 +00:00
|
|
|
//@ add-core-stubs
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ compile-flags: --crate-type=rlib
|
2021-06-11 14:22:13 +03:00
|
|
|
|
|
|
|
|
#![feature(no_core, lang_items)]
|
|
|
|
|
#![no_core]
|
|
|
|
|
|
2025-02-24 09:26:54 +00:00
|
|
|
extern crate minicore;
|
|
|
|
|
use minicore::*;
|
2022-07-30 05:37:48 +00:00
|
|
|
|
2025-02-05 11:15:27 -08:00
|
|
|
extern "rust-call" fn f4(_: ()) {} //~ ERROR extern "rust-call" ABI is experimental and subject to change
|
2016-07-17 00:15:15 +03:00
|
|
|
|
|
|
|
|
// Methods in trait definition
|
|
|
|
|
trait Tr {
|
2025-02-05 11:15:27 -08:00
|
|
|
extern "rust-call" fn m4(_: ()); //~ ERROR extern "rust-call" ABI is experimental and subject to change
|
2016-07-17 00:15:15 +03:00
|
|
|
|
2025-02-05 11:15:27 -08:00
|
|
|
extern "rust-call" fn dm4(_: ()) {} //~ ERROR extern "rust-call" ABI is experimental and subject to change
|
2016-07-17 00:15:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct S;
|
|
|
|
|
|
|
|
|
|
// Methods in trait impl
|
|
|
|
|
impl Tr for S {
|
2025-02-05 11:15:27 -08:00
|
|
|
extern "rust-call" fn m4(_: ()) {} //~ ERROR extern "rust-call" ABI is experimental and subject to change
|
2016-07-17 00:15:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Methods in inherent impl
|
|
|
|
|
impl S {
|
2025-02-05 11:15:27 -08:00
|
|
|
extern "rust-call" fn im4(_: ()) {} //~ ERROR extern "rust-call" ABI is experimental and subject to change
|
2016-07-17 00:15:15 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Function pointer types
|
2025-02-05 11:15:27 -08:00
|
|
|
type A4 = extern "rust-call" fn(_: ()); //~ ERROR extern "rust-call" ABI is experimental and subject to change
|
2016-07-17 00:15:15 +03:00
|
|
|
|
|
|
|
|
// Foreign modules
|
2025-02-05 11:15:27 -08:00
|
|
|
extern "rust-call" {} //~ ERROR extern "rust-call" ABI is experimental and subject to change
|