diff options
Diffstat (limited to 'tests/run-make/raw-dylib-custom-dlltool/lib.rs')
-rw-r--r-- | tests/run-make/raw-dylib-custom-dlltool/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/run-make/raw-dylib-custom-dlltool/lib.rs b/tests/run-make/raw-dylib-custom-dlltool/lib.rs new file mode 100644 index 000000000..2f3f497a0 --- /dev/null +++ b/tests/run-make/raw-dylib-custom-dlltool/lib.rs @@ -0,0 +1,10 @@ +#[link(name = "extern_1", kind = "raw-dylib")] +extern { + fn extern_fn_1(); +} + +pub fn library_function() { + unsafe { + extern_fn_1(); + } +} |