rust/tests/incremental/macro_export.rs

13 lines
333 B
Rust

//@ revisions: cfail1 cfail2 cfail3
//@ build-pass (FIXME(62277): could be check-pass?)
// This test case makes sure that we can compile with incremental compilation
// enabled when there are macros exported from this crate. (See #37756)
#![crate_type="rlib"]
#[macro_export]
macro_rules! some_macro {
($e:expr) => ($e + 1)
}