summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/atomic_test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/atomic_test.cpp b/test/atomic_test.cpp
index e3a8d73..5b6260c 100644
--- a/test/atomic_test.cpp
+++ b/test/atomic_test.cpp
@@ -29,6 +29,9 @@ main()
AtomicInt i(0);
TEST(i == 0);
+ AtomicInt j(i);
+ TEST(i == j);
+
++i;
TEST(i == 1);
@@ -59,6 +62,9 @@ main()
AtomicPtr<int> p;
TEST(p.get() == NULL);
+ AtomicPtr<int> q(p);
+ TEST(p == q);
+
p = &five;
TEST(p.get() == &five);
TEST(*p.get() == 5);