1 /* { dg-do compile } */ 2 /* { dg-options "-fdump-tree-optimized" } */ 3 /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */ 4 5 struct hardware { 6 int parm1:8; 7 int :4; 8 int parm2:4; 9 int parm3:15; 10 int parm4:1; 11 }; 12 f1(volatile struct hardware * ptr)13void f1(volatile struct hardware *ptr) 14 { 15 *ptr=(struct hardware) { 16 .parm1=42, 17 .parm2=13, 18 .parm3=11850, 19 .parm4=1, 20 }; 21 } 22 23 /* { dg-final { scan-tree-dump-times "\\*ptr" 1 "optimized" } } */ 24