1 /* { dg-do compile } */
2 /* { dg-options "-Wc++-compat" } */
4 enum e
{ FIRST
, LAST
};
6 extern void f2 (enum e
);
13 for (v
= FIRST
; v
< LAST
; ++v
) /* { dg-warning "invalid in C\[+\]\[+\]" } */
15 for (v
= FIRST
; v
< LAST
; v
++) /* { dg-warning "invalid in C\[+\]\[+\]" } */
17 for (v
= LAST
; v
> FIRST
; --v
) /* { dg-warning "invalid in C\[+\]\[+\]" } */
19 for (v
= LAST
; v
> FIRST
; v
--) /* { dg-warning "invalid in C\[+\]\[+\]" } */