Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / template / repo6.C
blobb15bab5a28bc0a1d8a0f04e4286f36993ae5efa3
1 // PR c++/34178
2 // { dg-options "-frepo" }
3 // { dg-final { cleanup-repo-files } }
4 // { dg-require-host-local "" }
6 template<typename T>
7 class A
9 private:
10   static const int x;
11   static int y;
13 public:
14   int getX () { return x + y; }
17 template<typename T> const int A<T>::x = 0;
18 template<typename T> int A<T>::y = 0;
20 int
21 main ()
23   A<int> a;
24   return a.getX();