summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/static9.C
blob: f23741cd3828208606904c52f016eb662f5e7a14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// { dg-do assemble  }
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
struct S {
  int i;
};

template <class T>
struct X {
  static S<T> s[];
};

template <class T>
S<T> X<T>::s[] = {
  { 3 } 
};

struct Z {};

void f(S<Z>* s);

void g()
{
  f (X<Z>::s);
}