Debian Codegraph @

gcc/testsuite/c-c++-common/gomp/pr83977-2.c

raw
1 /* PR middle-end/83977 */
2 /* { dg-do compile } */
3
4 void bar (void);
5
6 #pragma omp declare simd uniform (b) linear(a:b)
7 int
8 foo (int a, int b)
9 {
10 a = a + 1;
11 /* This function can't be called from simd loops,
12 because it violates declare simd restrictions.
13 We shouldn't ICE on it though, nor attempt to generate
14 simd clones for the *omp_fn* functions. */
15 #pragma omp parallel
16 bar ();
17 return a;
18 }