Add a test

This commit is contained in:
topecongiro 2020-06-30 11:34:05 +09:00 committed by Caleb Cartwright
parent 48d30a4f71
commit 8e46225547
2 changed files with 27 additions and 0 deletions

View File

@ -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 {

View File

@ -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" {}