Add a test
This commit is contained in:
parent
48d30a4f71
commit
8e46225547
2 changed files with 27 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue