Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / template / repo8.C
blob840dc08bcad355773aed8c48c56f7d16b18cf798
1 // PR c++/34340
2 // { dg-options "-frepo" }
3 // { dg-final { cleanup-repo-files } }
4 // { dg-require-host-local "" }
6 struct A
8   int a;
9 };
11 template <typename T> struct D
13   static const A b;
16 template<typename T> const A D<T>::b = { 2 };
18 const A *x = &D<A>::b;
20 int
21 main ()