2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / member3.C
blob4f87e57bcb3c8af9a14817d6ac1bf5489d6ad920
1 template<typename T>
2 struct A {
3   template<typename L> struct SubA { };
5   template<typename T1,typename L> void f(T1 & t1, SubA<L> & t2) { }
6   template<typename U> void g(SubA<U> & suba) { }
7   template<typename U> void h(SubA<U> & suba) { }
8 };
10 int main(void) {
11   int i;
12   A<int> a;
13   A<int>::SubA<int> suba;
15   a.f(i,suba);
16   a.g(suba);
17   a.h(suba);