]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.old-deja/g++.pt/enum.C
pt.c (instantiate_decl): Tell the repository code about the clones, not the cloned...
[gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / enum.C
1 // Build don't link:
2 // GROUPS passed enums
3 template<class T>
4 struct templ
5 {
6 enum { val = 0 };
7 };
8 struct Foo
9 {
10 enum {
11 bar = 0,
12 len = templ<int>::val
13 };
14 };
15 void func()
16 {
17 int s = Foo::bar; // Ensure that expansion of templ did not erase bar
18 }
This page took 0.037023 seconds and 5 git commands to generate.