Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / static10.C
blob591312190783e32e0c280dd330cf40869f0f105c
1 // { dg-do assemble }
2 // regression test -
4 // by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc.
5 // Copyright (C) 1999 Free Software Foundation
7 template<class A>
8 struct X {
9         X(A) {
10         }
12 template<class A>
13 struct Y {
14         static X<A> x(A(1)); // { dg-error "" } ANSI C++ forbids in-class initialization of non-const static member `x'
16 Y<int> y;