FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / nested1.C
blob3df7c47abb6f10093557500cdce9fc75e6f2d867
1 // Build don't link:
3 template <class T1,class T2>
4 struct X
6   T1 a;
8   struct Y
9   {
10     T2 x;
11     Y (T2 _x) { x=_x; }
12   };
16 template <class T1>
17 struct X<T1,int>
19   T1 a;
21   struct Y
22   {
23     int x;
24     Y (int _x) { x=_x; }
25   };
29 template <>
30 struct X<int,int>
32   int a;
34   struct Y
35   {
36     int x;
37     Y (int _x) { x=_x; }
38   };
42 void f ()
44   X<char,char> t1;
45   X<char,int> t2; 
46   X<int,int> t3;