1 /* PR c/85094 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -Wduplicated-branches -g" } */
4
5 extern int g;
6
7 void
8 foo (int r)
9 {
10 if (r < 64)
11 g -= 48;
12 else if (r < 80) /* { dg-warning "this condition has identical branches" } */
13 g -= 64 - 45;
14 else
15 g -= 80 - 61;
16 }