comparison gcc/testsuite/c-c++-common/gomp/pr83977-2.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
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 }