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