Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
enum3.C
blob: d51aa8a0f70e3b83d0a11c8618b8bae06c347f87 [
file
] [
log
] [
blame
]
// PR c++/100879
// { dg-additional-options -Werror=sign-compare }
enum
e1
{
e1val
};
enum
e2
{
e3val
};
int
main
(
int
,
char
*
[]
)
{
if
(
e1val
==
e3val
)
return
1
;
// { dg-warning -Wenum-compare }
}