Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/typename19.C

raw
1 // { dg-do run }
2 // { dg-options "" }
3 // Origin: Mark Mitchell <[email protected]>
4
5 template <class T>
6 struct O {
7 typedef char X;
8 };
9
10 template <class T>
11 struct S {
12 typedef double X;
13
14 template <class U>
15 struct I : public O<U> {
16 static X x;
17 };
18 };
19
20 template <class T>
21 template <class U>
22 typename S<T>::X S<T>::I<U>::x;
23
24 int main()
25 {
26 return sizeof (S<int>::I<double>::x) == 1;
27 }