//===-- Unittests for Atomic ----------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "src/__support/CPP/atomic.h" #include "test/UnitTest/Test.h" // Tests in this file do not test atomicity as it would require using // threads, at which point it becomes a chicken and egg problem. TEST(LlvmLibcAtomicTest, LoadStore) { … } TEST(LlvmLibcAtomicTest, CompareExchangeStrong) { … }