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