2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tm / memopt-13.c
blob381e682bca0285cbaaa397d6c9fc5d20b7d79cc9
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O -fdump-tree-tmmark" } */
4 struct large { int x[100]; };
5 struct large large_global;
6 extern struct large function (void) __attribute__((transaction_safe));
8 void f()
10 __transaction_atomic {
11 large_global = function();
15 /* { dg-final { scan-tree-dump-times "memmoveRtWt \\\(&large_global," 1 "tmmark" } } */
16 /* { dg-final { cleanup-tree-dump "tmmark" } } */