summaryrefslogtreecommitdiffstats
path: root/tests/run-make/symbol-visibility/a_proc_macro.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/symbol-visibility/a_proc_macro.rs')
-rw-r--r--tests/run-make/symbol-visibility/a_proc_macro.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run-make/symbol-visibility/a_proc_macro.rs b/tests/run-make/symbol-visibility/a_proc_macro.rs
new file mode 100644
index 000000000..9fd1a8a67
--- /dev/null
+++ b/tests/run-make/symbol-visibility/a_proc_macro.rs
@@ -0,0 +1,9 @@
+#![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();
+}