summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/ffi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc/ffi.rs')
-rw-r--r--src/test/rustdoc/ffi.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/rustdoc/ffi.rs b/src/test/rustdoc/ffi.rs
new file mode 100644
index 000000000..8140dfc72
--- /dev/null
+++ b/src/test/rustdoc/ffi.rs
@@ -0,0 +1,12 @@
+// aux-build:rustdoc-ffi.rs
+// ignore-cross-compile
+
+extern crate rustdoc_ffi as lib;
+
+// @has ffi/fn.foreigner.html //pre 'pub unsafe extern "C" fn foreigner(cold_as_ice: u32)'
+pub use lib::foreigner;
+
+extern "C" {
+ // @has ffi/fn.another.html //pre 'pub unsafe extern "C" fn another(cold_as_ice: u32)'
+ pub fn another(cold_as_ice: u32);
+}