| 73 | } // namespace |
| 74 | |
| 75 | TEST(ThreadLocalStorageTest, Basics) { |
| 76 | ThreadLocalStorage::Slot slot; |
| 77 | slot.Set(reinterpret_cast<void*>(123)); |
| 78 | int value = reinterpret_cast<intptr_t>(slot.Get()); |
| 79 | EXPECT_EQ(value, 123); |
| 80 | } |
| 81 | |
| 82 | #if defined(THREAD_SANITIZER) |
| 83 | // Do not run the test under ThreadSanitizer. Because this test iterates its |