OSDN Git Service

Formatting fixes.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / static10.C
1 // { dg-do assemble { xfail *-*-* } }
2 // regression test -
3
4 // by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc.
5 // Copyright (C) 1999 Free Software Foundation
6
7 template<class A>
8 struct X {
9         X(A) {
10         }
11 };
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'
15 };
16 Y<int> y;
17