rust/tests/ui/proc-macro/auxiliary/exports_no_mangle.rs
Felix S. Klock II a2a7f27fd2 fix proc-macro test added here to solely be exercised as a build product for the host.
thus we should no longer see test failures for e.g. wasm32 target.
2023-08-08 11:40:35 -04:00

12 lines
349 B
Rust

// force-host
// no-prefer-dynamic
#![crate_type="lib"]
// Issue 111888: this crate (1.) is imported by a proc-macro crate and (2.)
// exports a no_mangle function; that combination of acts was broken for some
// period of time. See further discussion in the test file that imports this
// crate.
#[no_mangle]
pub fn some_no_mangle_function() { }