1/* { dg-do compile } */
2/* { dg-options "-fgnu-tm -O  --param tm-max-aggregate-size=32" } */
3/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
4
5typedef int __attribute__ ((vector_size (16))) vectype;
6vectype v;
7
8void
9foo (int c)
10{
11  vectype *p = __builtin_malloc (sizeof (vectype));
12  __transaction_atomic
13  {
14    *p = v;
15    if (c)
16      __transaction_cancel;
17  }
18}
19