Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
enum7.C
blob: e81376124c78d36d0f3afac8267a621cfb840b77 [
file
] [
log
] [
blame
]
// { dg-do run }
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
;
}