1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* This tests that nonoveralpping_component_refs does not give up
5 on field delcs and continues looking to find mismatch between
11 struct b
{struct a a1
,a2
;};
12 struct c
{struct b b
[10];} *cptr
;
13 struct d
{struct c c
;} *dptr
;
19 return cptr
->b
[i
].a1
.a
;
26 return cptr
->b
[i
].a1
.a
;
28 /* { dg-final { scan-tree-dump-times "return 0" 1 "optimized"} } */
29 /* { dg-final { scan-tree-dump-not "return 1" "optimized"} } */