]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/issue-33992.rs
Remove Ty prefix from Ty{Adt|Array|Slice|RawPtr|Ref|FnDef|FnPtr|Dynamic|Closure|Gener...
[rust.git] / src / test / run-pass / issue-33992.rs
1 // Copyright 2016 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 // ignore-windows
12 // ignore-macos
13
14 #![feature(linkage)]
15
16 #[linkage = "common"]
17 pub static mut TEST1: u32 = 0u32;
18
19 #[linkage = "external"]
20 pub static TEST2: bool = true;
21
22 #[linkage = "internal"]
23 pub static TEST3: bool = true;
24
25 #[linkage = "linkonce"]
26 pub static TEST4: bool = true;
27
28 #[linkage = "linkonce_odr"]
29 pub static TEST5: bool = true;
30
31 #[linkage = "private"]
32 pub static TEST6: bool = true;
33
34 #[linkage = "weak"]
35 pub static TEST7: bool = true;
36
37 #[linkage = "weak_odr"]
38 pub static TEST8: bool = true;
39
40 fn main() {}