OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / static9.C
1 // { dg-do assemble  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
3
4 template <class T>
5 struct S {
6   int i;
7 };
8
9 template <class T>
10 struct X {
11   static S<T> s[];
12 };
13
14 template <class T>
15 S<T> X<T>::s[] = {
16   { 3 } 
17 };
18
19 struct Z {};
20
21 void f(S<Z>* s);
22
23 void g()
24 {
25   f (X<Z>::s);
26 }
27