Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
enum3.C
blob: 2e43608db0352c37b6348c8501bd2b63a788b1a8 [
file
] [
log
] [
blame
]
// { dg-do run }
struct
S
{
enum
en
{
s0
,
s1
,
s2
};
};
template
<
typename
S
::
en e
>
int
val
(
)
{
return
e
;
}
int
main
()
{
return
val
<
S
::
s0
>(
);
}