PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dse-17.c
blob0db5198ac1d78009c62564a2e1f0e3c7051f3431
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dse1" } */
4 struct s1 {
5 unsigned short f1;
6 unsigned char f2;
7 };
9 struct s2 {
10 struct s1 *p1;
13 void f1(struct s2 *p)
15 p->p1->f2 = 9;
16 p->p1->f2 = 10;
19 /* { dg-final { scan-tree-dump-times "f2 =" 1 "dse1" } } */