2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / typename19.C
blob5733c9b5b2faecbd8e967eecf98f10837388f832
1 // { dg-do run  }
2 // { dg-options "" }
3 // Origin: Mark Mitchell <mark@codesourcery.com>
5 template <class T>
6 struct O {
7   typedef char X;
8 };
10 template <class T>
11 struct S {
12   typedef double X;
14   template <class U>
15   struct I : public O<U> {
16     static X x;
17   };
20 template <class T>
21 template <class U>
22 typename S<T>::X S<T>::I<U>::x;
24 int main()
26   return sizeof (S<int>::I<double>::x) == 1;