]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tm/20091013.c
Merge from transactional-memory branch.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tm / 20091013.c
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O2" } */
3
4 extern long ringo(long int);
5 int g,i;
6
7 f()
8 {
9 __transaction_relaxed {
10 for (i=0; i < 10; ++i)
11 ringo(g);
12 }
13 }