Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / repo6.C
blob4b7178e2ad36200aab14b5a90ba54983569fa44a
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 } }
7 template<typename T>
8 class A
10 private:
11   static const int x;
12   static int y;
14 public:
15   int getX () { return x + y; }
18 template<typename T> const int A<T>::x = 0;
19 template<typename T> int A<T>::y = 0;
21 int
22 main ()
24   A<int> a;
25   return a.getX();