Debian Codegraph @

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

raw
1 // { dg-do assemble }
2 // regression test -
3
4 // by Paul Burchard <[email protected]>, 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