about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-07-09 15:10:16 -0700
committerJohn Clements <clements@racket-lang.org>2013-09-06 13:35:10 -0700
commit0c31c930ffc6a5c3b2cbaf45f7d5596840a8926d (patch)
tree7bf0deb488bb93debe2805e47d3b7fc034cd1963 /src/libsyntax
parent963dab5dcb9c348bb2631998702695de62916b31 (diff)
downloadrust-0c31c930ffc6a5c3b2cbaf45f7d5596840a8926d.tar.gz
rust-0c31c930ffc6a5c3b2cbaf45f7d5596840a8926d.zip
add test case for macro token comparison
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ext/expand.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs
index 63dd8231aa0..d072f2a7812 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