2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / static9.C
blobf23741cd3828208606904c52f016eb662f5e7a14
1 // { dg-do assemble  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
4 template <class T>
5 struct S {
6   int i;
7 };
9 template <class T>
10 struct X {
11   static S<T> s[];
14 template <class T>
15 S<T> X<T>::s[] = {
16   { 3 } 
19 struct Z {};
21 void f(S<Z>* s);
23 void g()
25   f (X<Z>::s);