blob: c9017855298eb52bef6691f31a35a9b2bd765dc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* { 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" } } */
|