1/* { dg-do compile } */
2/* { dg-options "-fgnu-tm" } */
3/* Test read and write on all basic types.  */
4
5struct S
6{
7  int x[10];
8};
9
10static struct S g;
11
12extern void fill (struct S *);
13
14void f(void)
15{
16  struct S l;
17  fill(&l);
18
19  __transaction_atomic {
20    g = l;
21  }
22}
23