Sign in
gnu
/
gcc
/
1126a05deadda1ef363e0f78fd802c8ee0ea5b56
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
enum7.C
blob: 47dcbfa6761311de6e2cc7a6eea93dec0ebff289 [
file
] [
log
] [
blame
]
template
<
int
I
>
int
f
()
{
enum
E
{
a
=
I
};
struct
S
{
int
g
()
{
E e
;
e
=
a
;
return
(
int
)
e
;
};
};
S s
;
return
s
.
g
();
}
int
main
()
{
if
(
f
<
7
>()
!=
7
)
return
1
;
if
(
f
<-
3
>()
!=
-
3
)
return
1
;
return
0
;
}