libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tm / data-1.c
blob16061476e08e8663a59535f2cac70a2ec826d911
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm" } */
3 /* Test read and write on all basic types. */
5 static char gc;
6 static signed char gsc;
7 static unsigned char guc;
9 static short gs;
10 static unsigned short gus;
12 static int gi;
13 static unsigned int gui;
15 static long gl;
16 static unsigned long gul;
18 static long long gll;
19 static unsigned long long gull;
21 static float gf;
22 static double gd;
23 static long double gld;
25 void f(void)
27 __transaction_atomic {
28 gc++;
29 gsc++;
30 guc++;
32 gs++;
33 gus++;
35 gi++;
36 gui++;
38 gl++;
39 gul++;
41 gll++;
42 gull++;
44 gf++;
45 gd++;
46 gld++;