about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-09-27 21:31:30 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-09-28 22:16:23 +0000
commit174f0936514d7e7224c34a78699733eea498875e (patch)
treecef28e1268c292fb4e965d33acf2f6b052adfaef
parentce5ad1da12da71712750a984dbdb1a1645745e6b (diff)
downloadrust-174f0936514d7e7224c34a78699733eea498875e.tar.gz
rust-174f0936514d7e7224c34a78699733eea498875e.zip
Add regression test.
-rw-r--r--src/test/run-pass/mod_dir_path.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/run-pass/mod_dir_path.rs b/src/test/run-pass/mod_dir_path.rs
index e0327a1dcd4..28dee15cfa0 100644
--- a/src/test/run-pass/mod_dir_path.rs
+++ b/src/test/run-pass/mod_dir_path.rs
@@ -17,4 +17,15 @@ mod mod_dir_simple {
 
 pub fn main() {
     assert_eq!(mod_dir_simple::syrup::foo(), 10);
+
+    #[path = "auxiliary"]
+    mod foo {
+        mod two_macros;
+    }
+
+    #[path = "auxiliary"]
+    mod bar {
+        macro_rules! m { () => { mod two_macros; } }
+        m!();
+    }
 }