2023-05-09 13:17:04 -04:00
|
|
|
// run-pass
|
|
|
|
|
2011-11-24 16:17:26 -08:00
|
|
|
// Regression test for a problem with the first mod attribute
|
|
|
|
// being applied to every mod
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2011-11-24 16:17:26 -08:00
|
|
|
#[cfg(target_os = "linux")]
|
2023-05-09 13:17:04 -04:00
|
|
|
mod hello {}
|
2011-11-24 16:17:26 -08:00
|
|
|
|
|
|
|
#[cfg(target_os = "macos")]
|
2023-05-09 13:17:04 -04:00
|
|
|
mod hello {}
|
2011-11-24 16:17:26 -08:00
|
|
|
|
2014-08-10 21:26:45 -07:00
|
|
|
#[cfg(target_os = "windows")]
|
2023-05-09 13:17:04 -04:00
|
|
|
mod hello {}
|
2011-12-30 16:18:55 +08:00
|
|
|
|
|
|
|
#[cfg(target_os = "freebsd")]
|
2023-05-09 13:17:04 -04:00
|
|
|
mod hello {}
|
2013-04-23 11:31:54 +09:00
|
|
|
|
2014-07-31 02:23:35 +02:00
|
|
|
#[cfg(target_os = "dragonfly")]
|
2023-05-09 13:17:04 -04:00
|
|
|
mod hello {}
|
2014-07-31 02:23:35 +02:00
|
|
|
|
2013-04-23 11:31:54 +09:00
|
|
|
#[cfg(target_os = "android")]
|
2023-05-09 13:17:04 -04:00
|
|
|
mod hello {}
|
2013-04-29 16:16:58 -07:00
|
|
|
|
2023-05-09 13:17:04 -04:00
|
|
|
fn main() {}
|