message: Tests: Make test_thread_local useful for release builds
diff: @@ -44,18 +44,21 @@ pub fn thread_test() {
  #[test_case]
  pub fn test_thread_local() {
  #[thread_local]
  - static BYTE: u8 = 0x42;
  + static mut BYTE: u8 = 0x42;
  #[thread_local]
  - static CAFECAFE: u64 = 0xCAFECAFE;
  + static mut CAFECAFE: u64 = 0xCAFECAFE;
  #[thread_local]
  - static DEADBEEF: u64 = 0xDEADBEEF;
  + static mut DEADBEEF: u64 = 0xDEADBEEF;
  + // If the thread local statics are not mut, they get optimized away in release.
  + unsafe {
  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) -> ! {
  