Skip to content

Commit 9e8e499

Browse files
committed
add test case for macro token comparison
1 parent b3d9776 commit 9e8e499

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libsyntax/ext/expand.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,6 +1647,10 @@ mod test {
16471647
//pprust::to_str(&resolved_ast,fake_print_crate,get_ident_interner())
16481648
//}
16491649

1650+
#[test] fn macro_tokens_should_match(){
1651+
expand_crate_str(@"macro_rules! m((a)=>(13)) fn main(){m!(a);}");
1652+
}
1653+
16501654
// renaming tests expand a crate and then check that the bindings match
16511655
// the right varrefs. The specification of the test case includes the
16521656
// text of the crate, and also an array of arrays. Each element in the

0 commit comments

Comments
 (0)