]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/min-global-align/min_global_align.rs
Add a test for `min_global_align`
[rust.git] / src / test / run-make / min-global-align / min_global_align.rs
1 // Copyright 2017 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 #![feature(no_core, lang_items)]
12 #![crate_type="rlib"]
13 #![no_core]
14
15 pub static STATIC_BOOL: bool = true;
16
17 pub static mut STATIC_MUT_BOOL: bool = true;
18
19 const CONST_BOOL: bool = true;
20 pub static CONST_BOOL_REF: &'static bool = &CONST_BOOL;
21
22
23 #[lang = "sized"]
24 trait Sized {}
25
26 #[lang = "copy"]
27 trait Copy {}
28
29 #[lang = "freeze"]
30 trait Freeze {}
31
32 #[lang = "sync"]
33 trait Sync {}
34 impl Sync for bool {}
35 impl Sync for &'static bool {}
36
37 #[lang="drop_in_place"]
38 pub unsafe fn drop_in_place<T: ?Sized>(_: *mut T) { }