blob: c3e99dcf61c0ce444c1e31e534f03d708054aae1 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -fdump-tree-optimized" } */
struct C {
long l;
C():l(0) {}
};
int main()
{
C* alloc;
__transaction_atomic {
alloc = new C;
}
alloc->l = 2;
return 0;
}
/* { dg-final { scan-assembler-not "_ITM_getTMCloneOrIrrevocable" } } */