rust/tests/run-make/symbol-visibility/a_proc_macro.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
192 B
Rust
Raw Permalink Normal View History

#![crate_type = "proc-macro"]
extern crate an_rlib;
// This should not be exported
#[no_mangle]
extern "C" fn public_c_function_from_cdylib() {
an_rlib::public_c_function_from_rlib();
}