1// PR c++/34340
2// { dg-options "-frepo" }
3// { dg-final { cleanup-repo-files } }
4// { dg-require-host-local "" }
5// { dg-skip-if "dkms are not final links" { vxworks_kernel } }
6
7struct A
8{
9  int a;
10};
11
12template <typename T> struct D
13{
14  static const A b;
15};
16
17template<typename T> const A D<T>::b = { 2 };
18template class D<A>;
19
20const A *x = &D<A>::b;
21
22int
23main ()
24{
25}
26