2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / spec26.C
blob9c8c30a487476292a1bbf380c7063d02d941fabc
1 // { dg-do assemble  }
2 // From: lat@iki.fi (Lassi A. Tuura)
3 // Test that a specialization without an initializer is not a definition,
4 // as specified in [temp.expl.spec].
7 struct X;
8 template <class T> struct Y { static const X array[]; };
9 template <> const X Y<int>::array [];
10 struct X { int i; };
11 template <> const X Y<int>::array [] = { 0, 1, 2, 3 };