blob: f90a85ea6a047ed7c7a1078fb10139ebf807acfe (
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
|
/* { dg-do compile } */
/* { dg-options "-fdump-tree-optimized" } */
struct hardware {
int parm1:8;
int :4;
int parm2:4;
int parm3:15;
int parm4:1;
};
const struct hardware h = {
.parm1=42,
.parm2=13,
.parm3=11850,
.parm4=1,
};
void f1(volatile struct hardware *ptr)
{
*ptr = h;
}
/* { dg-final { scan-tree-dump-times "\\*ptr" 1 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|