URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wenum-compare.C] - Rev 302
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test that we get the -Wenum-compare by default. See PR27975. */
/* { dg-do compile } */
/* { dg-options "" } */
enum E1 { a };
enum E2 { b };
int foo (E1 e1, E2 e2)
{
return e1 == e2; /* { dg-warning "comparison between" } */
}
Go to most recent revision | Compare with Previous | Blame | View Log