blob: 0a6581e32b70217bfcd1b68ad719b54e3cdb3c2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// PR c++/37146
// { dg-do compile }
enum E { E0 = 0, E1 = 'E' };
struct S
{
E s0 : 8;
enum E foo (bool, E);
};
E
S::foo (bool a, E b)
{
return a ? s0 : b;
}
|