2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(unused_macros)]
|
2012-12-11 12:20:27 -08:00
|
|
|
|
|
|
|
mod mod_dir_simple {
|
2012-12-17 18:06:52 -08:00
|
|
|
#[path = "test.rs"]
|
2012-12-11 12:20:27 -08:00
|
|
|
pub mod syrup;
|
|
|
|
}
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2013-05-18 22:02:45 -04:00
|
|
|
assert_eq!(mod_dir_simple::syrup::foo(), 10);
|
2016-09-27 21:31:30 +00:00
|
|
|
|
|
|
|
#[path = "auxiliary"]
|
|
|
|
mod foo {
|
2018-04-21 17:18:38 +03:00
|
|
|
mod two_macros_2;
|
2016-09-27 21:31:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[path = "auxiliary"]
|
|
|
|
mod bar {
|
2018-04-21 17:18:38 +03:00
|
|
|
macro_rules! m { () => { mod two_macros_2; } }
|
2016-09-27 21:31:30 +00:00
|
|
|
m!();
|
|
|
|
}
|
2012-12-11 12:20:27 -08:00
|
|
|
}
|