repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge -r 127928:132243 from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
repo8.C
blob
840dc08bcad355773aed8c48c56f7d16b18cf798
1
// PR c++/34340
2
// { dg-options "-frepo" }
3
// { dg-final { cleanup-repo-files } }
4
// { dg-require-host-local "" }
5
6
struct A
7
{
8
int a;
9
};
10
11
template <typename T> struct D
12
{
13
static const A b;
14
};
15
16
template<typename T> const A D<T>::b = { 2 };
17
18
const A *x = &D<A>::b;
19
20
int
21
main ()
22
{
23
}