summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr48953.c
blob: 41a3d7b80822a3e6f929bc9a12698799a88de82d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do run } */
/* { dg-options "-fno-tree-dce" } */

static inline int foo (int n, int k)
{
  struct S
  {
    int i[n];
    int value;
  } s[2];
  return s[k].value = 0;
}

int main ()
{
  return foo (2, 0);
}