PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / pr83977-3.c
blob00e18d85b372b0f36ff3a3551d58c38c4e9950d9
1 /* PR middle-end/83977 */
2 /* { dg-do compile } */
4 void bar (void);
5 int foo (int, int) __attribute__((used));
7 #pragma omp declare simd uniform (b) linear(a:b)
8 int
9 foo (int a, int b)
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;
21 int foo (int, int) __attribute__((unused));