PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr32901.c
blobb1802a237dc93490b3ac634b3a538716060a7df0
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-gimple" } */
4 struct foo {
5 unsigned a1: 1;
6 unsigned a2: 3;
7 unsigned : 4;
8 };
10 extern struct foo thefoo, theotherfoo;
12 void setup_foo(void)
14 const struct foo init = {
15 .a1 = 1,
16 .a2 = 5,
18 volatile const struct foo volinit = {
19 .a1 = 0,
20 .a2 = 6
22 thefoo = init;
23 theotherfoo = volinit;
26 /* { dg-final { scan-tree-dump-times "thefoo.* = {}" 1 "gimple"} } */
27 /* { dg-final { scan-tree-dump-times "thefoo.* = 1" 1 "gimple"} } */
28 /* { dg-final { scan-tree-dump-times "thefoo.* = 5" 1 "gimple"} } */
29 /* { dg-final { scan-tree-dump-times "theotherfoo = volinit" 1 "gimple"} } */