S/390: Deprecate g5 and g6 CPU levels
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / pr67514.C
bloba631b8bfedbfade0199e3fb273fb8ec9dafc7d07
1 // PR c++/67514
2 // { dg-do compile }
3 // { dg-options "-fopenmp" }
5 template <class T>
6 void
7 foo (T x, T y)
9   #pragma omp parallel
10   #pragma omp for simd
11   for (T i = x; i < y; ++i)
12     ;
13   #pragma omp parallel
14   #pragma omp for simd collapse (2)
15   for (T i = x; i < y; ++i)
16     for (T j = x; j < y; j++)
17       ;
20 void
21 bar (int *x, int *y)
23   foo (x, y);
26 void
27 baz (int x, int y)
29   foo (x, y);