aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template21.C
blob: 817d1da88282207e0f2bdde5f6d0bd44bb73d479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Gosh, this works!
// Build don't link:

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

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

template class A<int>;