aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/spec26.C
blob: 9c8c30a487476292a1bbf380c7063d02d941fabc (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }
// From: lat@iki.fi (Lassi A. Tuura)
// Test that a specialization without an initializer is not a definition,
// as specified in [temp.expl.spec].


struct X;
template <class T> struct Y { static const X array[]; };
template <> const X Y<int>::array [];
struct X { int i; };
template <> const X Y<int>::array [] = { 0, 1, 2, 3 };