blob: 5002c2475750c34311c4ec143d77aee62069cb5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do compile } */
/* { dg-options "-O1 -Wall" } */
/* PR/70013, SRA of constant-pool loads removes initialization of part of d. */
#pragma pack (1)
struct S0 {
unsigned f0 : 17;
};
int c;
int
main (int argc, char **argv)
{
struct S0 d[] = { { 1 }, { 2 } };
struct S0 e = d[1];
c = d[0].f0;
__builtin_printf ("%x\n", e.f0);
return 0;
}
|