1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O -fdump-tree-tmedge --param tm-max-aggregate-size=1" } */
4 struct large { int x[100]; };
6 extern int test (void) __attribute__((transaction_safe));
12 struct large lala = bark();
13 __transaction_atomic {
15 lala = lacopy; /* Aggregate instrumentation. */
20 /* { dg-final { scan-tree-dump-times "memmoveRtWt \\\(&lala, &lacopy" 1 "tmedge" } } */
21 /* { dg-final { cleanup-tree-dump "tmedge" } } */