blob: e063984712552705bb4d4dcc08e23a1762367a67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// PR c++/37946
// { dg-options "-std=c++0x" }
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);
}
|