OSDN Git Service

* gcc.target/i386/sse4_1-roundps-1.c: Skip for vxworks kernel.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / repo6.C
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:
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
22 main ()
23 {
24   A<int> a;
25   return a.getX();
26 }