Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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 }
}