Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
overload19.C
blob: 73404fe9da64d6d6689d40ee12cf6c25c899d46a [
file
] [
log
] [
blame
]
// { dg-do run }
// PRMS Id: 4689
// Bug: g++ doesn't notice operators overloaded on enumeral types.
enum
E
{
A
=
5
,
B
=
32
,
C
=
100
};
E
operator
|(
E a
,
E b
)
{
return
C
;
}
int
main
()
{
return
(
A
|
B
)
!=
C
;
}