(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
gomp/
pr83977-1.c
       1  /* PR middle-end/83977 */
       2  /* { dg-do compile } */
       3  /* { dg-additional-options "-O2 -w" } */
       4  
       5  struct S { int a, b, c; };
       6  
       7  #pragma omp declare simd uniform(z) linear(v:1)
       8  __attribute__((noinline)) static int
       9  foo (int x, int y, struct S z, int u, int v)
      10  {
      11    return x + y + z.a;
      12  }
      13  
      14  int
      15  bar (int x, int y, int z)
      16  {
      17    struct S s = { z, 1, 1 };
      18    return foo (x, y, s, 0, 0);
      19  }