remove test cases
[c11tester.git] / test / litmus / iriw.cc
diff --git a/test/litmus/iriw.cc b/test/litmus/iriw.cc
deleted file mode 100644 (file)
index fa4a034..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#include <stdio.h>
-#include <threads.h>
-#include <atomic>
-
-std::atomic_int x;
-std::atomic_int y;
-
-std::memory_order store_mo = std::memory_order_release;
-std::memory_order load_mo = std::memory_order_acquire;
-
-static void a(void *obj)
-{
-       x.store(1, store_mo);
-}
-
-static void b(void *obj)
-{
-       y.store(1, store_mo);
-}
-
-static void c(void *obj)
-{
-       printf("x1: %d\n", x.load(load_mo));
-       printf("y1: %d\n", y.load(load_mo));
-}
-
-static void d(void *obj)
-{
-       printf("y2: %d\n", y.load(load_mo));
-       printf("x2: %d\n", x.load(load_mo));
-}
-
-int user_main(int argc, char **argv)
-{
-       thrd_t t1, t2, t3, t4;
-
-       /* Command-line argument 's' enables seq_cst test */
-       if (argc > 1 && *argv[1] == 's')
-               store_mo = load_mo = std::memory_order_seq_cst;
-
-       atomic_init(&x, 0);
-       atomic_init(&y, 0);
-
-       printf("Main thread: creating 4 threads\n");
-       thrd_create(&t1, (thrd_start_t)&a, NULL);
-       thrd_create(&t2, (thrd_start_t)&b, NULL);
-       thrd_create(&t3, (thrd_start_t)&c, NULL);
-       thrd_create(&t4, (thrd_start_t)&d, NULL);
-
-       thrd_join(t1);
-       thrd_join(t2);
-       thrd_join(t3);
-       thrd_join(t4);
-       printf("Main thread is finished\n");
-
-       return 0;
-}