rust/tests/incremental/no_mangle.rs
Vadim Petrochenkov 56d6b4e427 compiletest: Support matching on non-json lines in compiler output
and migrate most of remaining `error-pattern`s to it.
2025-05-04 18:27:45 +03:00

12 lines
207 B
Rust

//@ revisions:cfail1 cfail2
//@ check-pass
//@ compile-flags: --crate-type cdylib
//@ needs-crate-type: cdylib
#![deny(unused_attributes)]
#[no_mangle]
pub extern "C" fn rust_no_mangle() -> i32 {
42
}