summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/struct-ini-4.c
blob: 3342439e54d26d456828d65e6045075a7860f553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
struct s {
  int a[3];
  int c[3];
};

struct s s = {
  c: {1, 2, 3}
};

main()
{
  if (s.c[0] != 1)
    abort ();
  exit (0);
}