Add more tests.

This commit is contained in:
Patrick Pelissier committed 2017-07-10 14:07:23 +02:00
1 parent 08112a3a6d
commit 70980046ed
1 file changed
+4 -1
+4 -1
View File
@@ -31,15 +31,18 @@ int main(void)
shared_int_clean(p1);
assert(shared_int_NULL_p(p1));
assert(!shared_int_NULL_p(p2));
assert(f(p2) == 12);
shared_int_set(p1, p2);
shared_int_clean(p2);
assert(!shared_int_NULL_p(p1));
assert(shared_int_NULL_p(p2));
assert(f(p1) == 12);
shared_int_set(p2, p1);
assert(!shared_int_NULL_p(p1));
assert(!shared_int_NULL_p(p2));
assert(f(p2) == 12);
shared_int_clean(p2);