Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
enum36.C
blob: 4859670309f8245f623fe7c4e34b17b39fb4a050 [
file
] [
log
] [
blame
]
// PR c++/82307
// { dg-do run { target c++11 } }
#include
<cassert>
enum
:
short
{
VAL
};
bool
foo
(
int
)
{
return
true
;
}
bool
foo
(
unsigned
long
long
)
{
return
false
;
}
int
main
()
{
assert
(
foo
(
VAL
));
}