]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/symbol-visibility/a_cdylib.rs
Rollup merge of #107348 - lcnr:project-solve-new, r=compiler-errors
[rust.git] / tests / run-make-fulldeps / symbol-visibility / a_cdylib.rs
1 #![crate_type="cdylib"]
2
3 extern crate an_rlib;
4
5 // This should not be exported
6 pub fn public_rust_function_from_cdylib() {}
7
8 // This should be exported
9 #[no_mangle]
10 pub extern "C" fn public_c_function_from_cdylib() {
11     an_rlib::public_c_function_from_rlib();
12 }