Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tm/data-1.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-fgnu-tm" } */ /* Test read and write on all basic types. */ static char gc; static signed char gsc; static unsigned char guc; static short gs; static unsigned short gus; static int gi; static unsigned int gui; static long gl; static unsigned long gul; static long long gll; static unsigned long long gull; static float gf; static double gd; static long double gld; void f(void) { __transaction_atomic { gc++; gsc++; guc++; gs++; gus++; gi++; gui++; gl++; gul++; gll++; gull++; gf++; gd++; gld++; } }