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