1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -fdump-tree-dse1" } */ 3 4 struct s1 { 5 unsigned short f1; 6 unsigned char f2; 7 }; 8 9 struct s2 { 10 struct s1 *p1; 11 }; 12 f1(struct s2 * p)13void f1(struct s2 *p) 14 { 15 p->p1->f2 = 9; 16 p->p1->f2 = 10; 17 } 18 19 /* { dg-final { scan-tree-dump-times "f2 =" 1 "dse1" } } */ 20