Skip to content

Commit 9568e3e

Browse files
committed
Add a test
1 parent cf596a2 commit 9568e3e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tests/source/extern.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,21 @@ 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;
6176
}
6277

6378
extern {

tests/target/extern.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ 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;
7680
}
7781

7882
extern "C" {}

0 commit comments

Comments
 (0)