Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / g++.old-deja / g++.other / instan1.C
blob3c294c39652385f6bb0f19bd1c49012c5e0d1cfc
1 // { dg-do link  }
2 // { dg-options "-fno-implicit-templates" }
3 // Origin: Mark Mitchell <mark@codesourcery.com>
5 template <class T>
6 struct U {
7   static int j;
8 };
10 template <class T>
11 struct S {
12   static const int i = 7;
15 template <class T>
16 const int S<T>::i;
18 template <class T>
19 int U<T>::j = S<T>::i + 5;
21 template int U<double>::j;
23 int main () {