Skip to content

Commit fd48ea0

Browse files
Add test to ensure foreign functions from dependencies are correctly handled
1 parent 2c4ce9d commit fd48ea0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// aux-build:all-item-types.rs
2+
3+
// This test is to ensure there is no problem on handling foreign functions
4+
// coming from a dependency.
5+
6+
#![crate_name = "foo"]
7+
8+
extern crate all_item_types;
9+
10+
// @has 'foo/fn.foo_ffn.html'
11+
// @has - '//*[@class="docblock item-decl"]//code' 'pub unsafe extern "C" fn foo_ffn()'
12+
pub use all_item_types::foo_ffn;

0 commit comments

Comments
 (0)