Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum6.C
blob: c3832ae433b74dd679182b07a6a79b8378f9352e [
file
] [
log
] [
blame
]
// PR c++/37946
// { dg-do compile { target c++11 } }
enum
class
E
:
char
{
e1
,
e2
};
inline
E
operator
|
(
E a1
,
E a2
)
{
char
ret
=
static_cast
<char>
(
a1
)
|
static_cast
<char>
(
a2
);
return
static_cast
<
E
>(
ret
);
}