Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.c++/loop-6.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | a06113de4d67 |
children |
line wrap: on
line source
// { dg-do run } extern "C" void abort (void); volatile int count; static int test(void) { return ++count > 0; } int i; int main() { #pragma omp for lastprivate (i) for (i = 0; i < 10; ++i) { if (test()) continue; abort (); } if (i != count) abort (); return 0; }