blob: dc42f41a94e374f45fa587d09aecae48c63d6ca9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// { dg-do compile }
// { dg-options "-Wsign-compare" }
enum E { A, B, C };
extern void f1(int);
void
f2(E v1, E v2)
{
for (unsigned int i = v1; i <= v2; ++i)
f1(i);
for (int i = v1; i <= v2; ++i)
f1(i);
}
|