Skip to content

Commit 174f093

Browse files
committed
Add regression test.
1 parent ce5ad1d commit 174f093

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/test/run-pass/mod_dir_path.rs

+11
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,15 @@ mod mod_dir_simple {
1717

1818
pub fn main() {
1919
assert_eq!(mod_dir_simple::syrup::foo(), 10);
20+
21+
#[path = "auxiliary"]
22+
mod foo {
23+
mod two_macros;
24+
}
25+
26+
#[path = "auxiliary"]
27+
mod bar {
28+
macro_rules! m { () => { mod two_macros; } }
29+
m!();
30+
}
2031
}

0 commit comments

Comments
 (0)