Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wenum-compare.C
blob: af7c483a2384d02f0263a8846e3a26cb47a3d47e [
file
] [
log
] [
blame
]
/* 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 "13:comparison between" } */
}