view gcc/testsuite/c-c++-common/gomp/pr83977-2.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
line wrap: on
line source

/* 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;
}