]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/c-c++-common/gomp/linear-3.c
openmp: Add support for OpenMP 5.2 linear clause syntax for C/C++
[gcc.git] / gcc / testsuite / c-c++-common / gomp / linear-3.c
1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp" } */
3
4 int step (int);
5 int val;
6 #pragma omp declare simd linear (val (x) : step (1)) /* { dg-error "is neither constant nor a parameter" } */
7 int bar (int x, int y, int z);
8 #pragma omp declare simd linear (val (x) : val) /* { dg-error "is neither constant nor a parameter" } */
9 int baz (int x, int y, int z);
This page took 0.034758 seconds and 5 git commands to generate.