Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wenum-compare-no.C
blob: 7dc27d3fe72d69147ccd29bb06d6c23293a84c7f [
file
] [
log
] [
blame
]
/* 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" } */
}