mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
Add a test
This commit is contained in:
parent
48d30a4f71
commit
8e46225547
@ -58,6 +58,25 @@ libc::c_long;
|
||||
, mode3: *const c_char,
|
||||
file: *mut FILE)
|
||||
-> *mut FILE;
|
||||
|
||||
|
||||
async fn foo(
|
||||
|
||||
) -> *mut
|
||||
Bar;
|
||||
const fn foo(
|
||||
|
||||
) ->
|
||||
*mut Bar;
|
||||
unsafe fn foo(
|
||||
|
||||
) -> *
|
||||
mut
|
||||
Bar;
|
||||
|
||||
pub async fn foo() -> *mut Bar;
|
||||
pub(super) const fn foo() -> *mut Bar;
|
||||
pub(crate) unsafe fn foo() -> *mut Bar;
|
||||
}
|
||||
|
||||
extern {
|
||||
|
@ -73,6 +73,14 @@ extern "C" {
|
||||
mode3: *const c_char,
|
||||
file: *mut FILE,
|
||||
) -> *mut FILE;
|
||||
|
||||
async fn foo() -> *mut Bar;
|
||||
const fn foo() -> *mut Bar;
|
||||
unsafe fn foo() -> *mut Bar;
|
||||
|
||||
pub async fn foo() -> *mut Bar;
|
||||
pub(super) const fn foo() -> *mut Bar;
|
||||
pub(crate) unsafe fn foo() -> *mut Bar;
|
||||
}
|
||||
|
||||
extern "C" {}
|
||||
|
Loading…
Reference in New Issue
Block a user