Signed-off-by: myperworld <myperworld@126.com>

This commit is contained in:
myperworld committed 2025-10-06 12:34:26 +08:00
1 parent 0986832fd1
commit aacd052c06
3403 files changed
+597376 -12

No files matched your search

@@ -0,0 +1,16 @@
// g++ --std=c++11 test.cpp
#include "test.h"
#include "fl/atomic.h"
TEST_CASE("atomic") {
fl::atomic<int> atomic(0);
atomic.store(1);
REQUIRE(atomic.load() == 1);
atomic.store(2);
REQUIRE(atomic.load() == 2);
atomic.store(3);
REQUIRE(atomic.load() == 3);
}