2 /* { dg-do compile } */
78 switch (b
) /* { dg-warning "switch condition has" } */
86 switch (b
) /* { dg-warning "switch condition has" } */
97 switch (n
== 2) /* { dg-warning "switch condition has" } */
99 case 0 ... 2: /* { dg-warning "upper value" "" { target c++ } } */
104 switch (n
== 2) /* { dg-warning "switch condition has" } */
106 case 1 ... 10: /* { dg-warning "upper value" "" { target c++ } } */
111 switch (n
== 2) /* { dg-warning "switch condition has" } */
113 case 2: /* { dg-warning "case label" "" { target c++ } } */
117 switch (n
== 2) /* { dg-warning "switch condition has" } */
121 case -1: /* { dg-warning "case label" "" { target c++ } } */
125 switch (n
== 2) /* { dg-warning "switch condition has" } */
127 case -1 ... 1: /* { dg-warning "lower value" "" { target c++ } } */
131 switch (n
== 2) /* { dg-warning "switch condition has" } */
133 case -1 ... 0: /* { dg-warning "lower value" "" { target c++ } } */
138 switch (n
== 2) /* { dg-warning "switch condition has" } */
140 case -10 ... -1: /* { dg-warning "case label" "" { target c++ } } */