diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/gomp/for-15.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/gomp/for-15.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/gomp/for-15.c b/gcc/testsuite/gcc.dg/gomp/for-15.c new file mode 100644 index 00000000000..28c2c926cb7 --- /dev/null +++ b/gcc/testsuite/gcc.dg/gomp/for-15.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-fopenmp" } */ + +void foo() +{ + long n = 10; + int i; +#pragma omp for + for (i=0; i < n; ++i) ; +#pragma omp for + for (i=0; n > i; ++i) ; +} |