Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
scoped_enum9.C
blob: f38f26dc35b07bd95b2e5fdc5a6c5a2dc92165d9 [
file
] [
log
] [
blame
]
// DR 685 - Integral promotion of enumeration ignores fixed underlying type.
// { dg-do compile { target c++11 } }
enum
E
:
long
{
e
};
void
f
(
int
);
int
f
(
long
);
void
g
()
{
int
k
=
f
(
e
);
}