diff options
Diffstat (limited to 'tests/incremental/macro_export.rs')
-rw-r--r-- | tests/incremental/macro_export.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/incremental/macro_export.rs b/tests/incremental/macro_export.rs new file mode 100644 index 000000000..044d63fd2 --- /dev/null +++ b/tests/incremental/macro_export.rs @@ -0,0 +1,12 @@ +// 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) +} |