Sign in
gnu
/
gcc
/
b1143e51359be3b1151d892970f43ae67dee64d2
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
enum.C
blob: 4fe84a4a8a83135ba938a996ab99502bca6ae025 [
file
] [
log
] [
blame
]
// Build don't link:
// GROUPS passed enums
template
<
class
T
>
struct
templ
{
enum
{
val
=
0
};
};
struct
Foo
{
enum
{
bar
=
0
,
len
=
templ
<int>
::
val
};
};
void
func
()
{
int
s
=
Foo
::
bar
;
// Ensure that expansion of templ did not erase bar
}