(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
pr48953.c
       1  /* { dg-do run } */
       2  /* { dg-options "-fno-tree-dce" } */
       3  /* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
       4  
       5  static inline int foo (int n, int k)
       6  {
       7    struct S
       8    {
       9      int i[n];
      10      int value;
      11    } s[2];
      12    return s[k].value = 0;
      13  }
      14  
      15  int main ()
      16  {
      17    return foo (2, 0);
      18  }