repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
template
/
static21-a.cc
blob
9489ae7d0b84b89b76d713c2e88772579c062a15
1
template
<
int
dummy
>
2
struct
X
3
{
4
static const int
n_primes
=
256
;
5
static const unsigned long
primes
[
n_primes
+
1
];
6
};
7
8
template
<
int
dummy
>
9
const int
X
<
dummy
>::
n_primes
;
10
11
template
<
int
dummy
>
12
const unsigned long
X
<
dummy
>::
primes
[
n_primes
+
1
] =
13
{
0
};
14
15
16
const unsigned long
*
f1
(
void
){
return
&
X
<
0
>::
primes
[
0
];}
17
int
main
(){}