blob: 48f2230cdd2539d4e45ab96f16ac25d27e6c6dde [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -fdump-ipa-tmipa" } */
/* Test that indirect calls set the irrevocable bit. */
void (*indirect)(void);
foo(){
__transaction_relaxed {
(*indirect)();
}
}
/* { dg-final { scan-ipa-dump-times "GTMA_MAY_ENTER_IRREVOCABLE" 1 "tmipa" } } */
/* { dg-final { cleanup-ipa-dump "tmipa" } } */