aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr70919.c
blob: 2422242ea5c009c933e25f895050bb879321efc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* { dg-do run } */
/* { dg-options "-O" } */

#pragma pack(1)
struct S0
{
#if __SIZEOF_INT >= 4
  int f0:24;
#else
  __INT32_TYPE__ f0:24;
#endif
};

struct S1
{
  int f1;
} a;

int b, c;

char
fn1 (struct S1 p1)
{
  return 0;
}

int
main ()
{
  c = fn1 (a);
  if (b)
    {
      struct S0 f[3][9] =
	{ { { 0 }, { 0 }, { 1 }, { 1 }, { 0 }, { 0 }, { 0 }, { 1 }, { 1 } },
	  { { 0 }, { 0 }, { 1 }, { 1 }, { 0 }, { 0 }, { 0 }, { 1 }, { 1 } },
	  { { 0 }, { 0 }, { 1 }, { 1 }, { 0 }, { 0 }, { 0 }, { 1 }, { 1 } }
	};
      b = f[1][8].f0;
    }
  struct S0 g[3][9] =
	{ { { 0 }, { 0 }, { 1 }, { 1 }, { 0 }, { 0 }, { 0 }, { 1 }, { 1 } },
	  { { 0 }, { 0 }, { 1 }, { 1 }, { 0 }, { 0 }, { 0 }, { 1 }, { 1 } },
	  { { 0 }, { 0 }, { 1 }, { 1 }, { 0 }, { 0 }, { 0 }, { 1 }, { 1 } }
	};

  if (g[1][8].f0 != 1)
    __builtin_abort ();

  return 0;
}