user_main: pass remaining arguments to the user program
[c11tester.git] / test / releaseseq.c
index 462a59f32a30251de82bed4ffbe451b8b862ed0b..27f2fb1cb8e5f5a357ce3da6a981f5e223538281 100644 (file)
@@ -32,7 +32,7 @@ static void c(void *obj)
        atomic_store_explicit(&x, 2, memory_order_relaxed);
 }
 
-void user_main()
+int user_main(int argc, char **argv)
 {
        thrd_t t1, t2, t3;
 
@@ -47,4 +47,6 @@ void user_main()
        thrd_join(t2);
        thrd_join(t3);
        printf("Thread %d is finished\n", thrd_current());
+
+       return 0;
 }