llvm-6502/unittests/Support
Hans Wennborg 837d6ed3ea Make sys::ThreadLocal<> zero-initialized on non-thread builds (PR18205)
According to the docs, ThreadLocal<>::get() should return NULL
if no object has been set. This patch makes that the case also for non-thread
builds and adds a very basic unit test to check it.

(This was causing PR18205 because PrettyStackTraceHead didn't get zero-
initialized and we'd crash trying to read past the end of that list. We didn't
notice this so much on Linux since we'd crash after printing all the entries,
but on Mac we print into a SmallString, and would crash before printing that.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197718 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-19 20:32:44 +00:00
..
AlignOfTest.cpp
AllocatorTest.cpp
ArrayRecyclerTest.cpp
BlockFrequencyTest.cpp [block-freq] Add a right shift to BlockFrequency that saturates at 1. 2013-12-14 02:24:22 +00:00
Casting.cpp Fix a regression I introduced back in r178147. 2013-07-18 02:42:40 +00:00
CMakeLists.txt Make sys::ThreadLocal<> zero-initialized on non-thread builds (PR18205) 2013-12-19 20:32:44 +00:00
CommandLineTest.cpp Implement TokenizeWindowsCommandLine. 2013-07-30 19:03:20 +00:00
CompressionTest.cpp Expose CRC-32 implementation from zlib 2013-08-14 16:03:29 +00:00
ConstantRangeTest.cpp make ConstantRange::signExtend() optimal 2013-10-30 15:36:50 +00:00
ConvertUTFTest.cpp [Support] Add a Unicode conversion wrapper from UTF16 to UTF8 2013-07-16 17:14:33 +00:00
DataExtractorTest.cpp
EndianTest.cpp
ErrorOrTest.cpp Simplify ErrorOr. 2013-11-05 00:28:01 +00:00
FileOutputBufferTest.cpp Add a convenience createUniqueDirectory function. 2013-06-27 03:45:31 +00:00
formatted_raw_ostream_test.cpp
LeakDetectorTest.cpp
LockFileManagerTest.cpp Fix boolean logic in LockFileManager and test it 2013-08-07 01:22:04 +00:00
Makefile Update incorrect file headers. 2013-08-01 18:42:28 +00:00
ManagedStatic.cpp
MathExtrasTest.cpp
MD5Test.cpp
MemoryBufferTest.cpp Change MemoryBuffer::getFile to take a Twine. 2013-10-25 19:06:52 +00:00
MemoryTest.cpp
Path.cpp Path: Recognize COFF import library file magic. 2013-11-15 21:22:02 +00:00
ProcessTest.cpp Try to unbreak mingw32 buildbot. 2013-09-10 21:32:42 +00:00
ProgramTest.cpp Add non-blocking Wait() for launched processes 2013-10-01 14:28:18 +00:00
raw_ostream_test.cpp
RegexTest.cpp Swap around EXPECT_EQ() arguments orders for more natural gtest Failure messages 2013-12-12 03:31:20 +00:00
SourceMgrTest.cpp SourceMgr diagnotics printing: fix a bug where printing a fixit for a source 2013-09-27 21:24:36 +00:00
SwapByteOrderTest.cpp
ThreadLocalTest.cpp Make sys::ThreadLocal<> zero-initialized on non-thread builds (PR18205) 2013-12-19 20:32:44 +00:00
TimeValueTest.cpp unittests/Support: Add TimeValue.Win32FILETIME, corresponding to r186374. 2013-07-16 02:44:23 +00:00
UnicodeTest.cpp Move generic isPrint and columnWidth implementations to a separate header/source to allow using both generic and system-dependent versions on win32. 2013-09-04 16:00:12 +00:00
ValueHandleTest.cpp
YAMLIOTest.cpp YAML I/O add support for validate() 2013-11-21 00:28:07 +00:00
YAMLParserTest.cpp