blob: c9017855298eb52bef6691f31a35a9b2bd765dc1 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -fdump-tree-optimized" } */
void free (void *);
void wrapper (void *) __attribute__((transaction_wrap (free)));
void *p;
void foo()
{
__transaction_relaxed { free (p); }
}
/* We still have one call to free()-- on the uninstrumented path
everything is as usual. */
/* { dg-final { scan-tree-dump-times "free" 1 "optimized" } } */