rust/tests/ui/proc-macro/auxiliary/exports_no_mangle.rs

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

12 lines
351 B
Rust
Raw Normal View History

//@ force-host
//@ no-prefer-dynamic
2023-08-04 10:29:41 -05:00
#![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() { }