summaryrefslogtreecommitdiffstats
path: root/cas.c
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2009-11-07 23:55:22 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2009-11-07 23:55:22 +0100
commit0f44dc69adb225a3c5410234491fc8950ed935f7 (patch)
tree6e72401ed3d8cc88b4d5e9d297a78b8360cf8cd3 /cas.c
parent491770df273ac2628c98a559fe8bbed5e812fbed (diff)
downloadlock_free-0f44dc69adb225a3c5410234491fc8950ed935f7.zip
lock_free-0f44dc69adb225a3c5410234491fc8950ed935f7.tar.gz
add concat assignment in cas.c tests
Diffstat (limited to 'cas.c')
-rw-r--r--cas.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/cas.c b/cas.c
index 284c6dc..910a56d 100644
--- a/cas.c
+++ b/cas.c
@@ -75,6 +75,16 @@ int test_cas () {
return cas(&mem.split, old.split, new.split);
}
+void check_assign_a() {
+ pointer_t a, b;
+ a.concat = b.concat;
+}
+
+void check_assign_b() {
+ pointer_t a, b;
+ a=b;
+}
+
int main( int argc, char*argv[], char*env[] ) {
int ret;