2017-11-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tm / wrap-3.c
blobc9017855298eb52bef6691f31a35a9b2bd765dc1
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -fdump-tree-optimized" } */
4 void free (void *);
5 void wrapper (void *) __attribute__((transaction_wrap (free)));
6 void *p;
8 void foo()
10 __transaction_relaxed { free (p); }
13 /* We still have one call to free()-- on the uninstrumented path
14 everything is as usual. */
15 /* { dg-final { scan-tree-dump-times "free" 1 "optimized" } } */