Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/repo7.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 } } | |
6 | |
7 struct A | |
8 { | |
9 int a; | |
10 }; | |
11 | |
12 template <typename T> struct D | |
13 { | |
14 static const A b; | |
15 }; | |
16 | |
17 template<typename T> const A D<T>::b = { 2 }; | |
18 template class D<A>; | |
19 | |
20 const A *x = &D<A>::b; | |
21 | |
22 int | |
23 main () | |
24 { | |
25 } |