Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro committed Jun 30, 2020
1 parent cf596a2 commit 9568e3e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/source/extern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,21 @@ 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;
}

extern {
Expand Down
4 changes: 4 additions & 0 deletions tests/target/extern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ 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;
}

extern "C" {}

0 comments on commit 9568e3e

Please sign in to comment.