diff --git a/tests/source/expr-block.rs b/tests/source/expr-block.rs index 54132ea862a..a5c93a5e2f2 100644 --- a/tests/source/expr-block.rs +++ b/tests/source/expr-block.rs @@ -109,3 +109,14 @@ fn function_calls() { span.lo, span.hi) } + +fn macros() { + baz!(do_not, add, trailing, commas, inside, of, function, like, macros, even, if_they, are, long); + + baz!(one_item_macro_which_is_also_loooooooooooooooooooooooooooooooooooooooooooooooong); + + let _ = match option { + None => baz!(function, like, macro_as, expression, which, is, loooooooooooooooong), + Some(p) => baz!(one_item_macro_as_expression_which_is_also_loooooooooooooooong), + }; +} diff --git a/tests/target/expr-block.rs b/tests/target/expr-block.rs index fe393dcad73..99f0d2fbf50 100644 --- a/tests/target/expr-block.rs +++ b/tests/target/expr-block.rs @@ -149,3 +149,38 @@ fn function_calls() { span.hi, ) } + +fn macros() { + baz!( + do_not, + add, + trailing, + commas, + inside, + of, + function, + like, + macros, + even, + if_they, + are, + long + ); + + baz!(one_item_macro_which_is_also_loooooooooooooooooooooooooooooooooooooooooooooooong); + + let _ = match option { + None => { + baz!( + function, + like, + macro_as, + expression, + which, + is, + loooooooooooooooong + ) + } + Some(p) => baz!(one_item_macro_as_expression_which_is_also_loooooooooooooooong), + }; +}