OSDN Git Service

PR c++/37276
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / warn / Wenum-compare-no.C
1 /* Test disabling -Wenum-compare (on by default).  See PR27975.  */
2 /* { dg-do compile } */
3 /* { dg-options "-Wno-enum-compare" } */
4 enum E1 { a };
5 enum E2 { b };
6
7 int foo (E1 e1, E2 e2)
8 {
9   return e1 == e2;  /* { dg-bogus "comparison between" } */
10 }