Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
);
}