Sign in
llvm
/
llvm-archive
/
80a0e6b09a6ccb2f8832d59b5fb8d96f9ae994c5
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
enum.C
blob: f2192e794fca29592df91fc03620254e4c9c3ee9 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// 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
}