OSDN Git Service

* gimplify.c (gimplify_modify_expr_rhs): Handle the case when we
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / pr32901.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-gimple" } */
3
4 struct foo {
5         unsigned a1: 1;
6         unsigned a2: 3;
7         unsigned : 4;
8 };
9
10 extern struct foo thefoo;
11
12 void setup_foo(void)
13 {
14         const struct foo init = {
15                 .a1 = 1,
16                 .a2 = 5,
17         };
18         thefoo = init;
19 }
20
21 /* { dg-final { scan-tree-dump-times "thefoo.0 = \{\}" 1 "gimple"} } */
22 /* { dg-final { scan-tree-dump-times "thefoo.0.a1 = 1" 1 "gimple"} } */
23 /* { dg-final { scan-tree-dump-times "thefoo.0.a2 = 5" 1 "gimple"} } */
24 /* { dg-final { cleanup-tree-dump "gimple" } } */