aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr82838.c
blob: a6ca163f82f7e194148702827998ed8031838b86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR tree-optimization/82838 */

struct S { unsigned short a, b, c; };
struct S f[10];

void
foo (int e)
{
  struct S *x;
  f[e].b = x[e].a;
  f[e].c = x[e].b;
}