aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/enum.C
blob: f2192e794fca29592df91fc03620254e4c9c3ee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { 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
}