summaryrefslogtreecommitdiffstats
path: root/tests/incremental/no_mangle.rs
blob: b1c9b2bc37f64d1ab7cd6bd4c756647f07ae891d (plain)
1
2
3
4
5
6
7
8
9
10
// revisions:cfail1 cfail2
// check-pass
// compile-flags: --crate-type cdylib

#![deny(unused_attributes)]

#[no_mangle]
pub extern "C" fn rust_no_mangle() -> i32 {
    42
}