v1.3增加一个简单的越障模式

This commit is contained in:
myperworld committed 2025-11-22 22:52:53 +08:00
1 parent 9d56ba85f1
commit 7a1931cb72
1835 files changed
+475654 -1

No files matched your search

+16
View File
@@ -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);
}