Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr58984.c
blobe0f7669c78d003af20e7d4b849471fe19dcbfcc9
1 /* PR tree-optimization/58984 */
3 struct S { int f0 : 8; int : 6; int f1 : 5; };
4 struct T { char f0; int : 6; int f1 : 5; };
6 int a, *c = &a, e, n, b, m;
8 static int
9 foo (struct S p)
11 const unsigned short *f[36];
12 for (; e < 2; e++)
14 const unsigned short **i = &f[0];
15 *c ^= 1;
16 if (p.f1)
18 *i = 0;
19 return b;
22 return 0;
25 static int
26 bar (struct T p)
28 const unsigned short *f[36];
29 for (; e < 2; e++)
31 const unsigned short **i = &f[0];
32 *c ^= 1;
33 if (p.f1)
35 *i = 0;
36 return b;
39 return 0;
42 int
43 main ()
45 struct S o = { 1, 1 };
46 foo (o);
47 m = n || o.f0;
48 if (a != 1)
49 __builtin_abort ();
50 e = 0;
51 struct T p = { 1, 1 };
52 bar (p);
53 m |= n || p.f0;
54 if (a != 0)
55 __builtin_abort ();
56 return 0;