Skip to content

Commit 8e46225

Browse files
topecongirocalebcartwright
authored andcommitted
Add a test
1 parent 48d30a4 commit 8e46225

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

tests/source/extern.rs

+19
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,25 @@ libc::c_long;
5858
, mode3: *const c_char,
5959
file: *mut FILE)
6060
-> *mut FILE;
61+
62+
63+
async fn foo(
64+
65+
) -> *mut
66+
Bar;
67+
const fn foo(
68+
69+
) ->
70+
*mut Bar;
71+
unsafe fn foo(
72+
73+
) -> *
74+
mut
75+
Bar;
76+
77+
pub async fn foo() -> *mut Bar;
78+
pub(super) const fn foo() -> *mut Bar;
79+
pub(crate) unsafe fn foo() -> *mut Bar;
6180
}
6281

6382
extern {

tests/target/extern.rs

+8
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ extern "C" {
7373
mode3: *const c_char,
7474
file: *mut FILE,
7575
) -> *mut FILE;
76+
77+
async fn foo() -> *mut Bar;
78+
const fn foo() -> *mut Bar;
79+
unsafe fn foo() -> *mut Bar;
80+
81+
pub async fn foo() -> *mut Bar;
82+
pub(super) const fn foo() -> *mut Bar;
83+
pub(crate) unsafe fn foo() -> *mut Bar;
7684
}
7785

7886
extern "C" {}

0 commit comments

Comments
 (0)