tsan: add test for __cxa_atexit
authorDmitry Vyukov <dvyukov@google.com>
Thu, 25 Nov 2021 17:55:42 +0000 (18:55 +0100)
committerDmitry Vyukov <dvyukov@google.com>
Fri, 26 Nov 2021 07:00:29 +0000 (08:00 +0100)
commit9ea3bd5a1ccec785563faf82e08f6d9d6cb1ec0b
treefde12edb8dab4c80a623597ac2c9b365608d6ff6
parentc2f0de06c9595f34afec7905bae41d08cb46f150
tsan: add test for __cxa_atexit

Add a test for a common C++ bug when a global object is destroyed
while background threads still use it.

Depends on D114604.

Reviewed By: vitalybuka, melver

Differential Revision: https://reviews.llvm.org/D114605
compiler-rt/test/tsan/atexit5.cpp [new file with mode: 0644]