repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
static10.C
blob
591312190783e32e0c280dd330cf40869f0f105c
1
// { dg-do assemble }
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