Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/spec26.C

raw
1 // { dg-do assemble }
2 // From: [email protected] (Lassi A. Tuura)
3 // Test that a specialization without an initializer is not a definition,
4 // as specified in [temp.expl.spec].
5
6
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 };