Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr82299.C
blob: 27f4c5f61727aa3240db2a40a1dd59d0a5582c31 [
file
] [
log
] [
blame
]
// PR c++/82299
// { dg-do compile { target c++11 } }
// { dg-options "-Wuseless-cast" }
enum
Enum
:
char
{
A
=
0
,
B
=
1
};
struct
S
{
Enum
e
{
Enum
::
A
};
// { dg-bogus "useless cast to type" }
};