2 /* { dg-do compile } */
3 /* { dg-options "-Wduplicated-branches" } */
8 if (i
) /* { dg-warning "this condition has identical branches" } */
10 /* { dg-warning ".return. with a value" "" { target c } .-1 } */
11 /* { dg-error "return-statement with a value" "" { target c++ } .-2 } */
14 /* { dg-warning ".return. with a value" "" { target c } .-1 } */
15 /* { dg-error "return-statement with a value" "" { target c++ } .-2 } */