diff options
Diffstat (limited to 'tests/ui/macros/macro-deep_expansion.rs')
-rw-r--r-- | tests/ui/macros/macro-deep_expansion.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-deep_expansion.rs b/tests/ui/macros/macro-deep_expansion.rs new file mode 100644 index 000000000..e13d8e1fc --- /dev/null +++ b/tests/ui/macros/macro-deep_expansion.rs @@ -0,0 +1,17 @@ +// run-pass + +macro_rules! foo2 { + () => { + "foo" + } +} + +macro_rules! foo { + () => { + foo2!() + } +} + +fn main() { + assert_eq!(concat!(foo!(), "bar"), "foobar") +} |