blob: f0b0d6f4c24a74148c87b9ab0673c61cb14dbabd [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -O0" } */
/* { dg-do compile { target aarch64*-*-* } } */
typedef int __attribute__ ((vector_size (16))) vectype;
vectype v;
void
foo (int c)
{
vectype *p = __builtin_malloc (sizeof (vectype));
__transaction_atomic
{
*p = v;
if (c)
__transaction_cancel;
}
}