message: Tests: Add test_thread_local
diff: #![feature(test)]
  +#![feature(thread_local)]
  #![no_std]
  #![no_main]
  #![test_runner(common::test_case_runner)]
  @@ -40,6 +41,22 @@ pub fn thread_test() {
  }
  }
  +#[test_case]
  +pub fn test_thread_local() {
  + #[thread_local]
  + static BYTE: u8 = 0x42;
  +
  + #[thread_local]
  + static CAFECAFE: u64 = 0xCAFECAFE;
  +
  + #[thread_local]
  + static DEADBEEF: u64 = 0xDEADBEEF;
  +
  + assert_eq!(0x42, BYTE);
  + assert_eq!(0xCAFECAFE, CAFECAFE);
  + assert_eq!(0xDEADBEEF, DEADBEEF);
  +}
  +
  #[no_mangle]
  extern "C" fn runtime_entry(_argc: i32, _argv: *const *const u8, _env: *const *const u8) -> ! {
  test_main();
  