]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/dupe-first-attr.rc
Add a few more derivings to AST types
[rust.git] / src / test / run-pass / dupe-first-attr.rc
1 // Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // Regression test for a problem with the first mod attribute
12 // being applied to every mod
13
14 #[cfg(target_os = "linux")]
15 mod hello;
16
17 #[cfg(target_os = "macos")]
18 mod hello;
19
20 #[cfg(target_os = "win32")]
21 mod hello;
22
23 #[cfg(target_os = "freebsd")]
24 mod hello;
25
26 #[cfg(target_os = "android")]
27 mod hello;
28
29 pub fn main() { }