diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/gomp/for-12.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/gomp/for-12.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/gomp/for-12.c b/gcc/testsuite/gcc.dg/gomp/for-12.c new file mode 100644 index 00000000000..98318d7d5ae --- /dev/null +++ b/gcc/testsuite/gcc.dg/gomp/for-12.c @@ -0,0 +1,12 @@ +int foo (void) +{ + int i, a; + + a = 30; + + #pragma omp parallel for lastprivate (a) + for (i = 0; i < 10; i++) + a = a + i; + + return a; +} |