2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wenum-compare.C
blobf60080039fbef2d2f9141d4613d3d298cda86d61
1 /* Test that we get the -Wenum-compare by default.  See PR27975.  */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
4 enum E1 { a };
5 enum E2 { b };
7 int foo (E1 e1, E2 e2)
9   return e1 == e2;  /* { dg-warning "comparison between" } */