1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-gimple" } */
17 int foo(struct f
*x
, struct f
*y
)
19 return &x
->j
== &y
->j
; /* x == y */
25 return &x
->j
== &y
.j
; /* x == &y */
29 int foobar(struct g
*x
)
31 return &x
->j
.i
== &yy
.j
.i
; /* x == &yy */
33 int foobar2(struct g
*x
)
35 return &x
->k
->i
== &yy
.k
->i
; /* x->k == yy.k */
38 /* { dg-final { scan-tree-dump-times "x == y" 1 "gimple" } } */
39 /* { dg-final { scan-tree-dump-times "x == &y" 2 "gimple" } } */
40 /* { dg-final { scan-tree-dump "x->k" "gimple" } } */
41 /* { dg-final { scan-tree-dump "yy.k" "gimple" } } */