aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/tm/ipa-1.c
blob: 961f7fe79c0b5c0f6678419a80e0a85fab825d91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -O -fdump-ipa-tmipa" } */

int val, george;

extern void func();

int set_remove(void)
{
  int result = 8;
  __transaction_atomic  {
    result = george;
    if (val)
      goto out;
  }
 out:
  func();
  return result;
}


/* { dg-final { scan-ipa-dump-not "getTMCloneOrIrrevocable" "tmipa" } } */
/* { dg-final { cleanup-ipa-dump "tmipa" } } */