Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tm/data-2.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-fgnu-tm" } */ | |
3 /* Test read and write on all basic types. */ | |
4 | |
5 struct S | |
6 { | |
7 int x[10]; | |
8 }; | |
9 | |
10 static struct S g; | |
11 | |
12 extern void fill (struct S *); | |
13 | |
14 void f(void) | |
15 { | |
16 struct S l; | |
17 fill(&l); | |
18 | |
19 __transaction_atomic { | |
20 g = l; | |
21 } | |
22 } |