Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tm/pr52142.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-fgnu-tm -O1" } */ | |
3 static int global = 0; | |
4 | |
5 __attribute__((transaction_pure)) | |
6 static inline void purefunc() | |
7 { | |
8 global++; | |
9 } | |
10 | |
11 __attribute__((transaction_safe)) | |
12 void f(); | |
13 | |
14 void push() | |
15 { | |
16 __transaction_atomic { | |
17 f(); | |
18 purefunc(); | |
19 } | |
20 } | |
21 | |
22 /* { dg-final { scan-assembler-not "_ITM_RfWU4" } } */ |