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