diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 63dd8231aa07..d072f2a7812b 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -1647,6 +1647,10 @@ mod test { //pprust::to_str(&resolved_ast,fake_print_crate,get_ident_interner()) //} + #[test] fn macro_tokens_should_match(){ + expand_crate_str(@"macro_rules! m((a)=>(13)) fn main(){m!(a);}"); + } + // renaming tests expand a crate and then check that the bindings match // the right varrefs. The specification of the test case includes the // text of the crate, and also an array of arrays. Each element in the