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

struct S object = {'X', 8, 9};

main ()
{
  if (object.f1 != 'X' || object.f2[0] != 8 || object.f2[1] != 9)
    abort ();
  exit (0);
}