2 /* { dg-do compile } */
3 /* { dg-options "-Wunused" } */
10 for (int i
= 0; i
< b
; i
+ b
) /* { dg-warning "28:statement with no effect" } */
12 // PARM_DECLs still don't have a location, don't expect an exact location.
13 for (int i
= 0; i
< b
; b
) /* { dg-warning "statement with no effect" } */
15 for (int i
= 0; i
< b
; !i
) /* { dg-warning "26:statement with no effect" } */
17 for (!b
;;) /* { dg-warning "8:statement with no effect" } */
19 for (;; b
* 2) /* { dg-warning "13:statement with no effect" } */
22 b
/ 5; /* { dg-warning "8:statement with no effect" } */