1 /* Simplest test involving real threads. Verify we get the correct answer. */
3 /* { dg-options "-pthread" } */
10 static void *start (void *dummy
__attribute__((unused
)))
12 __transaction_atomic
{ x
++; }
21 for (i
= 0; i
< 10; ++i
)
22 pthread_create (p
+i
, NULL
, start
, NULL
);
24 for (i
= 0; i
< 10; ++i
)
25 pthread_join (p
[i
], NULL
);