Remove a couple mudflap remnants
[official-gcc.git] / libitm / testsuite / libitm.c / clone-1.c
blob03e62664d80ca37511169c3b01168e6c02898b36
1 /* Verify that we can look up tm clone of transaction_callable
2 and transaction_pure. */
4 #include <stdlib.h>
5 #include <libitm.h>
7 static int x;
9 int __attribute__((transaction_pure)) pure(int i)
11 return i+2;
14 int __attribute__((transaction_callable)) callable(void)
16 return ++x;
19 int main()
21 if (_ITM_getTMCloneSafe (&pure) != &pure)
22 abort ();
24 if (_ITM_getTMCloneSafe (&callable) == NULL)
25 abort ();
27 return 0;