Skip to content

Commit

Permalink
Add regression test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jseyfried committed Sep 28, 2016
1 parent ce5ad1d commit 174f093
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/run-pass/mod_dir_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!();
}
}

0 comments on commit 174f093

Please sign in to comment.