Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/gomp/pr83977-3.c @ 138:fc828634a951
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 08 Nov 2018 14:17:14 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* PR middle-end/83977 */ /* { dg-do compile } */ void bar (void); int foo (int, int) __attribute__((used)); #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; } int foo (int, int) __attribute__((unused));