Skip to content

Commit e4e3d80

Browse files
committed
Test macro invocations containing $
1 parent a250c45 commit e4e3d80

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

corpus/macros.txt

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ a!('\u{0}'..='\u{2}');
5151
a!('lifetime)
5252
default!(a);
5353
union!(a);
54+
a!($);
55+
a!($());
56+
a!($ a $);
57+
a!(${$([ a ])});
5458

5559
--------------------------------------------------------------------------------
5660

@@ -101,7 +105,23 @@ union!(a);
101105
(macro_invocation
102106
(identifier)
103107
(token_tree
104-
(identifier)))))
108+
(identifier))))
109+
(expression_statement
110+
(macro_invocation
111+
(identifier)
112+
(token_tree)))
113+
(expression_statement
114+
(macro_invocation
115+
(identifier)
116+
(token_tree (token_tree))))
117+
(expression_statement
118+
(macro_invocation
119+
(identifier)
120+
(token_tree (identifier))))
121+
(expression_statement
122+
(macro_invocation
123+
(identifier)
124+
(token_tree (token_tree (token_tree (token_tree (identifier))))))))
105125

106126
================================================================================
107127
Macro invocation with comments

0 commit comments

Comments
 (0)