gcc/testsuite/c-c++-common/tm/ipa-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-fgnu-tm -O -fdump-ipa-tmipa" } */ |
| 3 | |
| 4 | int val, george; |
| 5 | |
| 6 | extern void func(); |
| 7 | |
| 8 | int set_remove(void) |
| 9 | { |
| 10 | int result = 8; |
| 11 | __transaction_atomic { |
| 12 | result = george; |
| 13 | if (val) |
| 14 | goto out; |
| 15 | } |
| 16 | out: |
| 17 | func(); |
| 18 | return result; |
| 19 | } |
| 20 | |
| 21 | |
| 22 | /* { dg-final { scan-ipa-dump-not "getTMCloneOrIrrevocable" "tmipa" } } */ |