Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.c/atomic-4.c @ 64:d9bee9007a48
Added tag gcc-4.6-20100522 for changeset b7f97abdc517
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:48:09 +0900 |
parents | a06113de4d67 |
children | 04ced10e8804 |
line wrap: on
line source
/* PR middle-end/35611 */ /* { dg-options "-O2" } */ extern void abort (void); int main (void) { long double d = .0L; int i; #pragma omp parallel for shared (d) for (i = 0; i < 1000; i++) #pragma omp atomic d += 1.0L; if (d != 1000.0L) abort (); return 0; }