Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / repo8.C
blobc51592c934919e5e499d8a76b85402f75984d375
1 // PR c++/34340
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 struct A
9   int a;
12 template <typename T> struct D
14   static const A b;
17 template<typename T> const A D<T>::b = { 2 };
19 const A *x = &D<A>::b;
21 int
22 main ()