1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O -fdump-tree-tmmark" } */
4 extern int something(void) __attribute__((transaction_safe
));
5 extern void *malloc (__SIZE_TYPE__
) __attribute__((malloc
,transaction_safe
));
7 struct large
{ int foo
[500]; };
14 __transaction_atomic
{
15 p
= malloc (sizeof (*p
) * 100);
16 lp
= malloc (sizeof (*lp
) * 100);
18 /* No instrumentation necessary; P and LP are transaction local. */
28 /* { dg-final { scan-tree-dump-times "ITM_WU" 0 "tmmark" } } */