aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tm/props-3.c
blob: 48f2230cdd2539d4e45ab96f16ac25d27e6c6dde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { 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" } } */