aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/gomp/pr83977-2.c
blob: c3359b9f05e1b7413ce4c175bed3ac8bb3d6bdb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR middle-end/83977 */
/* { dg-do compile } */

void bar (void);

#pragma omp declare simd uniform (b) linear(a:b)
int
foo (int a, int b)
{
  a = a + 1;
/* This function can't be called from simd loops,
   because it violates declare simd restrictions.
   We shouldn't ICE on it though, nor attempt to generate
   simd clones for the *omp_fn* functions.  */
  #pragma omp parallel
  bar ();  
  return a;
}