1// PR c++/34178
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
7template<typename T>
8class A
9{
10private:
11  static const int x;
12  static int y;
13
14public:
15  int getX () { return x + y; }
16};
17
18template<typename T> const int A<T>::x = 0;
19template<typename T> int A<T>::y = 0;
20
21int
22main ()
23{
24  A<int> a;
25  return a.getX();
26}
27