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