Mercurial > hg > CbC > CbC_gcc
comparison libgomp/testsuite/libgomp.c/pr42029.c @ 51:ae3a4bfb450b
add some files of version 4.4.3 that have been forgotten.
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 07 Feb 2010 18:27:48 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
47:3bfb6c00c1e0 | 51:ae3a4bfb450b |
---|---|
1 /* PR middle-end/42029 */ | |
2 /* { dg-do run } */ | |
3 | |
4 extern void abort (void); | |
5 | |
6 int | |
7 main () | |
8 { | |
9 int i; | |
10 _Complex int c = 0; | |
11 | |
12 #pragma omp parallel for private(i) reduction(+:c) | |
13 for (i = 0; i < 8; ++i) | |
14 c += 1; | |
15 | |
16 if (c != 8) | |
17 abort (); | |
18 return 0; | |
19 } |