X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Fdouble-relseq.c;h=ebf0dc791e4a497cc86f41665025810962822c17;hb=a64ca6ed8ef09fb2a974d44315404075cbf365fe;hp=5b220eb888c08f81610516d82c7d44f884054cec;hpb=b8b39c87557325a384faa45d0cae56a6f71f52b1;p=model-checker.git diff --git a/test/double-relseq.c b/test/double-relseq.c index 5b220eb..ebf0dc7 100644 --- a/test/double-relseq.c +++ b/test/double-relseq.c @@ -10,10 +10,10 @@ */ #include +#include +#include -#include "libthreads.h" #include "librace.h" -#include "stdatomic.h" atomic_int x; int var = 0; @@ -37,7 +37,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, t4; @@ -54,4 +54,6 @@ void user_main() thrd_join(t3); thrd_join(t4); printf("Thread %d is finished\n", thrd_current()); + + return 0; }