1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3
4 /* Self right-shift should be optimized to 0. */
5
6 int
foo(int i)7 foo (int i)
8 {
9 return i >> i;
10 }
11
12 /* { dg-final { scan-tree-dump "return 0;" "optimized" } } */
13