1 /* These tests all check whether initialization happens properly even if no
2 transaction has been used in the current thread yet. */
4 /* { dg-options "-pthread" } */
10 static void *test1 (void *dummy __attribute__((unused)))
12 if (_ITM_inTransaction() != outsideTransaction)
17 static void *test2 (void *dummy __attribute__((unused)))
19 if (_ITM_getTransactionId() != _ITM_noTransactionId)
29 pthread_create(&thread, NULL, test1, NULL);
30 pthread_join(thread, NULL);
32 pthread_create(&thread, NULL, test2, NULL);
33 pthread_join(thread, NULL);