URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wenum-compare-no.C] - Rev 839
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test disabling -Wenum-compare (on by default). See PR27975. */
/* { dg-do compile } */
/* { dg-options "-Wno-enum-compare" } */
enum E1 { a };
enum E2 { b };
int foo (E1 e1, E2 e2)
{
return e1 == e2; /* { dg-bogus "comparison between" } */
}
Go to most recent revision | Compare with Previous | Blame | View Log