1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dse1" } */
7 static int local1
, local2
;
12 return local1
+ local2
;
15 /* There should only be one assignment to local1 and local2. */
16 /* { dg-final { scan-tree-dump-times "local1 = " 1 "dse1"} } */
17 /* { dg-final { scan-tree-dump-times "local2 = " 1 "dse1"} } */
19 /* { dg-final { cleanup-tree-dump "dse1" } } */