1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-rtl-cprop2" } */
3 
4 int f (int);
5 unsigned int glob;
6 
7 void
g()8 g ()
9 {
10   while (f (glob));
11   glob = 5;
12 }
13 
14 /* { dg-final { scan-rtl-dump "GLOBAL COPY-PROP" "cprop2" } } */
15