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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
static9.C
blob
f23741cd3828208606904c52f016eb662f5e7a14
1
// { dg-do assemble }
2
// Origin: Mark Mitchell <mark@codesourcery.com>
3
4
template <class T>
5
struct S {
6
int i;
7
};
8
9
template <class T>
10
struct X {
11
static S<T> s[];
12
};
13
14
template <class T>
15
S<T> X<T>::s[] = {
16
{ 3 }
17
};
18
19
struct Z {};
20
21
void f(S<Z>* s);
22
23
void g()
24
{
25
f (X<Z>::s);
26
}
27