aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/template21.C
blob: 86b6131368bf49239eb1e699ece85ec116f3ef9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }
// Gosh, this works!

template<class T>
struct A
{
    struct B
    {
	void bar();
    };
    struct C { };
};

template<class T> void A<T>::B::bar() { }

template class A<int>;