diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/c-c++-common/gomp/pr51360.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/c-c++-common/gomp/pr51360.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/c-c++-common/gomp/pr51360.c b/gcc-4.9/gcc/testsuite/c-c++-common/gomp/pr51360.c new file mode 100644 index 000000000..c32242e65 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/c-c++-common/gomp/pr51360.c @@ -0,0 +1,27 @@ +/* PR c/51360 */ +/* { dg-do compile } */ +/* { dg-options "-Wunused -W -fopenmp" } */ + +void +foo (int a, int b, int c, int d) +{ + int m, n, o, p, i; + m = 6; + n = 1; + o = 5; + p = 1; + a = 6; + b = 1; + c = 5; + d = 1; + #pragma omp parallel for num_threads (m) if (n) schedule (static, o) + for (i = 0; i < 10; i++) + ; + #pragma omp parallel for num_threads (a) if (b) schedule (static, c) + for (i = 0; i < 10; i++) + ; + #pragma omp task final (p) + ; + #pragma omp task final (d) + ; +} |