libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tm / opt-2.c
blobd9e2b8a6db0d3560fc8bba3a39c18e1e37bcb84c
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O2" } */
4 int foo(int *arr, int v)
6 int r = 0;
7 int i;
8 __transaction_atomic {
9 for (i = 0; i < 10; ++i)
10 if (arr[i] < 27)
11 r += arr[i] += v;
13 return r;