/src/test/run-make-fulldeps/min-global-align/min_global_align.rs

https://gitlab.com/jianglu/rust · Rust · 38 lines · 19 code · 10 blank · 9 comment · 2 complexity · 7338865fb1a5664560f7372d92e706fd MD5 · raw file

  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. #![feature(no_core, lang_items)]
  11. #![crate_type="rlib"]
  12. #![no_core]
  13. pub static STATIC_BOOL: bool = true;
  14. pub static mut STATIC_MUT_BOOL: bool = true;
  15. const CONST_BOOL: bool = true;
  16. pub static CONST_BOOL_REF: &'static bool = &CONST_BOOL;
  17. #[lang = "sized"]
  18. trait Sized {}
  19. #[lang = "copy"]
  20. trait Copy {}
  21. #[lang = "freeze"]
  22. trait Freeze {}
  23. #[lang = "sync"]
  24. trait Sync {}
  25. impl Sync for bool {}
  26. impl Sync for &'static bool {}
  27. #[lang="drop_in_place"]
  28. pub unsafe fn drop_in_place<T: ?Sized>(_: *mut T) { }