summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20100907.c
blob: 2e6cfb9ff9f81b9dbb83d930d9b32ea5c545da58 (plain)
1
2
3
4
5
6
7
8
9
struct a {int a,b;};
const static struct a a[1]={{1,2}};
struct a b,c;
t()
{
  int idx = 0;
  b=a[idx];
  c=a[idx];
}