diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-09-27 21:31:30 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-09-28 22:16:23 +0000 |
| commit | 174f0936514d7e7224c34a78699733eea498875e (patch) | |
| tree | cef28e1268c292fb4e965d33acf2f6b052adfaef | |
| parent | ce5ad1da12da71712750a984dbdb1a1645745e6b (diff) | |
| download | rust-174f0936514d7e7224c34a78699733eea498875e.tar.gz rust-174f0936514d7e7224c34a78699733eea498875e.zip | |
Add regression test.
| -rw-r--r-- | src/test/run-pass/mod_dir_path.rs | 11 |
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!(); + } } |
